com.triactive.jdo.store.sql
Class ClassBaseTable
java.lang.Object
com.triactive.jdo.store.sql.AbstractTable
com.triactive.jdo.store.sql.BaseTable
com.triactive.jdo.store.sql.ClassBaseTable
- All Implemented Interfaces:
- ClassTable, Table
- public class ClassBaseTable
- extends BaseTable
- implements ClassTable
A database base table that serves as backing for a persistence-capable Java
class.
- Author:
- Mike Martin
Methods inherited from class com.triactive.jdo.store.sql.BaseTable |
addCandidateKey, addColumn, addForeignKey, addIndex, assertConstraintsInitialized, assertConstraintsNotFrozen, assertConstraintsUninitialized, assertIsInitialized, assertIsUninitialized, assertIsValidated, constraintsFrozen, constraintsInitialized, create, drop, dropConstraints, exists, getDatabaseAdapter, getName, getSqlAddFKStatements, getSqlCreateIndexStatements, getSqlCreateStatements, getSqlDropStatements, hasColumnName, intern, isInitialized, isValidated, newColumn, newColumn, setPrimaryKey, toString, validate, validateConstraints |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.triactive.jdo.store.sql.Table |
addColumn, create, drop, exists, getDatabaseAdapter, getName, intern, isInitialized, isValidated, newColumn, newColumn, validate |
ClassBaseTable
public ClassBaseTable(TableName name,
ClassMetaData cmd,
DatabaseAdapter dba)
initialize
public void initialize(StoreManager.MgmtTransaction mtx)
- Specified by:
initialize
in interface Table
- Overrides:
initialize
in class BaseTable
initializeConstraints
public void initializeConstraints(StoreManager.MgmtTransaction mtx)
- Overrides:
initializeConstraints
in class BaseTable
getType
public java.lang.Class getType()
- Specified by:
getType
in interface ClassTable
getClassMetaData
public ClassMetaData getClassMetaData()
- Specified by:
getClassMetaData
in interface ClassTable
newOIDGenerator
public OIDGenerator newOIDGenerator(int classID)
- Specified by:
newOIDGenerator
in interface ClassTable
getSupertable
public ClassBaseTable getSupertable()
getIDMapping
public ColumnMapping getIDMapping()
isFieldPersistent
public boolean isFieldPersistent(int fieldNumber)
- Specified by:
isFieldPersistent
in interface ClassTable
getFieldMapping
public Mapping getFieldMapping(int fieldNumber)
- Specified by:
getFieldMapping
in interface ClassTable
getFieldMapping
public Mapping getFieldMapping(java.lang.String fieldName)
- Specified by:
getFieldMapping
in interface ClassTable
newExtent
public javax.jdo.Extent newExtent(PersistenceManager pm,
boolean subclasses)
- Specified by:
newExtent
in interface ClassTable
insert
public void insert(StateManager sm)
lookup
public void lookup(StateManager sm)
fetch
public void fetch(StateManager sm,
int[] fieldNumbers)
update
public void update(StateManager sm,
int[] fieldNumbers)
delete
public void delete(StateManager sm)
deleteWhereEqual
public void deleteWhereEqual(java.util.Collection sms,
int fieldNumber,
java.lang.Object fieldValue)
deleteAllIn
public void deleteAllIn(java.util.Collection sms)
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseTable
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class BaseTable
Copyright © 2001-2007 The TJDO Project All Rights Reserved.