|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is responsible for storing subclass information into the database and for obtaining subclass information for data loaded from the database.
| Method Summary | |
void |
addClassCondition(PersistenceManagerImpl pm,
ObjectSelect sel)
Adds the appropriate SQL to sel to select only
instances that are of the class that this subclass provider is
configured for. |
void |
addClassCondition(PersistenceManagerImpl pm,
QuerySelect sel)
Adds the appropriate SQL to sel to select only
instances that are of the class that this subclass provider is
configured for. |
void |
addSubclassConditions(PersistenceManagerImpl pm,
ObjectSelect sel)
Adds the appropriate SQL to sel to select only
instances that are of the class that this provider is
configured for, or are subclasses of that class. |
void |
addSubclassConditions(PersistenceManagerImpl pm,
QuerySelect sel)
Adds the appropriate SQL to sel to select only
instances that are of the class that this provider is
configured for, or are subclasses of that class. |
Column[] |
getIndicatorColumns()
Returns the columns that store the indicator value. |
Class[] |
getSubclasses(PersistenceManagerImpl pm)
Return a list of known persistent subclasses of the mapped type. |
Class |
getType(PersistenceManagerImpl pm,
ResultSet rs,
int startIndex,
ClassResolver resolver)
Return the class of the object stored in the current row of the given result set. |
Object |
getValue(PersistenceManagerImpl pm)
Return an object to be stored in this mapping's indicator column. |
void |
initialize(ClassMapping cm,
Column[] indicatorCols)
Initialize this subclass provider for cm. |
void |
initialize(ClassMapping cm,
Table primaryTable)
Initialize this subclass provider for cm. |
void |
insert(StateManagerImpl sm,
Table currentTable,
Insert insert)
Adds the appropriate SQL to insert to insert the
subclass indicator values into currentTable. |
void |
select(PersistenceManagerImpl pm,
ObjectSelect sel)
Adds the appropriate SQL to sel to select the
columns needed for subclass information. |
void |
select(PersistenceManagerImpl pm,
QuerySelect sel)
Adds the appropriate SQL to sel to select the
columns needed for subclass information. |
| Method Detail |
public void initialize(ClassMapping cm,
Table primaryTable)
cm.
primaryTable is the table that the class
indicator should be installed in.
public void initialize(ClassMapping cm,
Column[] indicatorCols)
cm.
indicatorCols is the array of indicator columns
that cm's parent class uses, and which this
subclass provider should therefore use.
public Class getType(PersistenceManagerImpl pm,
ResultSet rs,
int startIndex,
ClassResolver resolver)
Return the class of the object stored in the current row of
the given result set. startIndex is the index of
the first of this subclass provider's columns.
public Object getValue(PersistenceManagerImpl pm)
Return an object to be stored in this mapping's indicator
column. pm is a reference to the
PersistenceManagerImpl that requested that this class be
loaded.
This method should generate values from which
getType(PersistenceManagerImpl,ResultSet,int,ClassResolver)
can correctly determine a class.
public void addClassCondition(PersistenceManagerImpl pm,
ObjectSelect sel)
sel to select only
instances that are of the class that this subclass provider is
configured for.
public void addSubclassConditions(PersistenceManagerImpl pm,
ObjectSelect sel)
sel to select only
instances that are of the class that this provider is
configured for, or are subclasses of that class.
public void select(PersistenceManagerImpl pm,
ObjectSelect sel)
sel to select the
columns needed for subclass information.
public void insert(StateManagerImpl sm,
Table currentTable,
Insert insert)
insert to insert the
subclass indicator values into currentTable.public Column[] getIndicatorColumns()
null or Column[0] if there
are no columns.public Class[] getSubclasses(PersistenceManagerImpl pm)
Return a list of known persistent subclasses of the mapped type.
Instantiates all the classes that are in the subclass field
for this mapping. This will register the subclasses with the
JDOImplHelper, which will then be
accessible to ClassMapping.getSubclasses().
public void addClassCondition(PersistenceManagerImpl pm,
QuerySelect sel)
sel to select only
instances that are of the class that this subclass provider is
configured for.
public void addSubclassConditions(PersistenceManagerImpl pm,
QuerySelect sel)
sel to select only
instances that are of the class that this provider is
configured for, or are subclasses of that class.
public void select(PersistenceManagerImpl pm,
QuerySelect sel)
sel to select the
columns needed for subclass information.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||