|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--kodo.jdbc.meta.Indicator
|
+--kodo.jdbc.meta.ClassIndicator
|
+--kodo.jdbc.meta.ColumnClassIndicator
Abstract base class for class indicators that use a column to hold class information.
| Constructor Summary | |
ColumnClassIndicator()
|
|
| Method Summary | |
void |
fromMappingInfo(MappingInfo info,
boolean adapt)
Deserialize this mapping from a simple MappingInfo
instance parsed from XML or some other format. |
Class |
getClass(JDBCStoreManager store,
Result res)
Return the class for the current result row. |
protected abstract Class |
getClass(Object indicator,
ClassLoader loader)
Return the class for the given column value. |
protected abstract Object |
getClassIndicator(ClassMapping mapping)
Return the value the column should take. |
Column |
getColumn()
Return the column used to hold class info. |
protected abstract int |
getDataStoreTypeCode()
Return the FieldMapping type code for the type of data stored
by this indicator. |
protected int |
getJDBCType()
Return the JDBC type of the column for this indicator. |
void |
insert(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
boolean |
map()
Map a new instance of this mapping type. |
void |
refSchemaComponents()
Increment the reference count of all used schema components. |
boolean |
select(Select sel)
Select the virtual row columns of this mapping. |
void |
setColumn(Column col)
Set the column used to hold class info. |
void |
toMappingInfo(MappingInfo info)
Serialize this mapping to a simple MappingInfo instance
for transfer to XML or some other format. |
| Methods inherited from class kodo.jdbc.meta.ClassIndicator |
addClassConditions, getClassLoader, getDefaults, loadSubclasses, newInstance, setSubclassesLoaded, subclassesLoaded, toString |
| Methods inherited from class kodo.jdbc.meta.Indicator |
delete, delete, getDBDictionary, getMappingRepository, getOwnerMapping, getTable, insert, isCustomDelete, isCustomInsert, isCustomUpdate, reverseMap, setOwnerMapping, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface kodo.jdbc.meta.Mapping |
getMappingType |
| Constructor Detail |
public ColumnClassIndicator()
| Method Detail |
public Column getColumn()
public void setColumn(Column col)
protected abstract int getDataStoreTypeCode()
FieldMapping type code for the type of data stored
by this indicator.protected int getJDBCType()
getDataStoreTypeCode().protected abstract Object getClassIndicator(ClassMapping mapping)
protected abstract Class getClass(Object indicator,
ClassLoader loader)
throws ClassNotFoundException
public void toMappingInfo(MappingInfo info)
MappingMappingInfo instance
for transfer to XML or some other format.
public void fromMappingInfo(MappingInfo info,
boolean adapt)
MappingMappingInfo
instance parsed from XML or some other format. If the info is
incompatible and adapt is true, try to adapt to the new
info. This method must validate
the given mapping information using the SchemaGroup.findTable(kodo.jdbc.schema.Table)
method to find any needed tables, the Table.getColumn(java.lang.String) method
to retrieve columns from those tables, and the
Column.isCompatible(int, int) method to check all column types.
This validation is important, as some schema groups use these methods
to build themselves up dynamically rather than reading schema
information from the database.kodo.jdbc.meta.MappingMappingInfoNotFoundException - if the given info is invalidpublic boolean map()
Mappingpublic void refSchemaComponents()
MappingrefSchemaComponents in class Indicator
public void insert(KodoStateManager sm,
RowManager rm)
throws SQLException
Mappinginsert in class Indicatorpublic boolean select(Select sel)
Indicatorselect in class Indicatorkodo.jdbc.meta.Indicator
public Class getClass(JDBCStoreManager store,
Result res)
throws SQLException,
ClassNotFoundException
ClassIndicatorgetClass in class ClassIndicator
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||