com.triactive.jdo.store.sql
Class ClassBaseTable

java.lang.Object
  extended bycom.triactive.jdo.store.sql.AbstractTable
      extended bycom.triactive.jdo.store.sql.BaseTable
          extended bycom.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

Field Summary
 
Fields inherited from class com.triactive.jdo.store.sql.BaseTable
columnsByName, dba, name, state, TABLE_STATE_CONSTRAINTS_FROZEN, TABLE_STATE_CONSTRAINTS_INITIALIZED, TABLE_STATE_INITIALIZED, TABLE_STATE_NEW, TABLE_STATE_VALIDATED
 
Fields inherited from interface com.triactive.jdo.store.sql.Table
TABLE_TYPE_BASE_TABLE, TABLE_TYPE_MISSING, TABLE_TYPE_UNKNOWN, TABLE_TYPE_VIEW
 
Constructor Summary
ClassBaseTable(TableName name, ClassMetaData cmd, DatabaseAdapter dba)
           
 
Method Summary
 void delete(StateManager sm)
           
 void deleteAllIn(java.util.Collection sms)
           
 void deleteWhereEqual(java.util.Collection sms, int fieldNumber, java.lang.Object fieldValue)
           
 boolean equals(java.lang.Object obj)
           
 void fetch(StateManager sm, int[] fieldNumbers)
           
 ClassMetaData getClassMetaData()
           
 Mapping getFieldMapping(int fieldNumber)
           
 Mapping getFieldMapping(java.lang.String fieldName)
           
 ColumnMapping getIDMapping()
           
 ClassBaseTable getSupertable()
           
 java.lang.Class getType()
           
 int hashCode()
           
 void initialize(StoreManager.MgmtTransaction mtx)
           
 void initializeConstraints(StoreManager.MgmtTransaction mtx)
           
 void insert(StateManager sm)
           
 boolean isFieldPersistent(int fieldNumber)
           
 void lookup(StateManager sm)
           
 javax.jdo.Extent newExtent(PersistenceManager pm, boolean subclasses)
           
 OIDGenerator newOIDGenerator(int classID)
           
 void update(StateManager sm, int[] fieldNumbers)
           
 
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
 

Constructor Detail

ClassBaseTable

public ClassBaseTable(TableName name,
                      ClassMetaData cmd,
                      DatabaseAdapter dba)
Method Detail

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.