|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| 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.VersionIndicator
|
+--kodo.jdbc.meta.ColumnVersionIndicator
Abstract base class for version indicators that use a column to hold version information.
| Constructor Summary | |
ColumnVersionIndicator()
|
|
| Method Summary | |
void |
addMappingInfoAttributes(Collection attrs)
Add all mapping attributes names used by this mapping to the given collection. |
Object |
attachVersion(Serializable version)
Convert from an external form of the version into the internal form. |
int |
compareVersion(Object v1,
Object v2)
We expect version objects that subclasses use will implement Comparable; simply use that mechanism for performing
comparison. |
void |
delete(KodoStateManager sm,
RowManager rm)
Set the where values appropriately to delete the proper instance, and set all relations on non-secondary tables as updates. |
Serializable |
detachVersion(Object version)
Return a serializable, external form of the version. |
void |
fromMappingInfo(MappingInfo info,
boolean adapt)
The default implementation will raise warnings for any mapping attributes that are declared but not in the list of the valid attributes for this mapping. |
Column |
getColumn()
Deprecated. use getColumns() instead. |
Column[] |
getColumns()
Return the columns used to hold version info. |
protected abstract int |
getDataStoreTypeCode()
Return the FieldMapping type code for the type of the
column. |
protected int |
getJDBCType()
Return the JDBC type of the column for this indicator. |
protected abstract Object |
getNextVersion(Object currentVersion)
Return the next version object, given the current one (which may be null for newly-persisted objects). |
void |
insert(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
void |
load(KodoStateManager sm,
JDBCStoreManager store,
Result res)
Load virtual row data. |
boolean |
map()
Map a new instance of this mapping type. |
protected abstract boolean |
needsRefresh(Object mem,
Object db)
Return true if mem is not up-to-date with db. |
boolean |
select(Select sel,
ClassMapping mapping)
Select the virtual row columns of this mapping. |
void |
setColumn(Column col)
Set the column used to hold version info. |
boolean |
synchVersion(KodoStateManager sm,
JDBCStoreManager store)
Synchronize the version of the given state manager with the version stored in memory. |
void |
toMappingInfo(MappingInfo info)
Serialize this mapping to a simple MappingInfo instance
for transfer to XML or some other format. |
void |
update(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
| Methods inherited from class kodo.jdbc.meta.VersionIndicator |
getDefaults, newInstance, postLoad, toString |
| Methods inherited from class kodo.jdbc.meta.Indicator |
delete, getDBDictionary, getMappingRepository, getOwnerMapping, getTable, insert, isCustomDelete, isCustomInsert, isCustomUpdate, refSchemaComponents, reverseMap, setOwnerMapping, 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 ColumnVersionIndicator()
| Method Detail |
protected abstract int getDataStoreTypeCode()
FieldMapping type code for the type of the
column.protected int getJDBCType()
getDataStoreTypeCode().protected abstract Object getNextVersion(Object currentVersion)
protected abstract boolean needsRefresh(Object mem,
Object db)
mem is not up-to-date with db.
public int compareVersion(Object v1,
Object v2)
Comparable; simply use that mechanism for performing
comparison.compareVersion in class VersionIndicatorkodo.jdbc.meta.VersionIndicatorStoreManager.compareVersion(kodo.runtime.KodoStateManager, java.lang.Object, java.lang.Object)public Column getColumn()
getColumns() instead.
public Column[] getColumns()
getColumns in class Indicatorpublic void setColumn(Column col)
public void toMappingInfo(MappingInfo info)
MappingMappingInfo instance
for transfer to XML or some other format.
public void fromMappingInfo(MappingInfo info,
boolean adapt)
IndicatorfromMappingInfo in class Indicatorkodo.jdbc.meta.IndicatorIndicator.addMappingInfoAttributes(java.util.Collection)public void addMappingInfoAttributes(Collection attrs)
MappingaddMappingInfoAttributes in class Indicatorpublic boolean map()
Mapping
public boolean synchVersion(KodoStateManager sm,
JDBCStoreManager store)
throws SQLException
VersionIndicatorsynchVersion in class VersionIndicatorkodo.jdbc.meta.VersionIndicatorStoreManager.synchVersion(kodo.runtime.KodoStateManager, java.lang.Object)
public boolean select(Select sel,
ClassMapping mapping)
Indicatorselect in class Indicatorkodo.jdbc.meta.Indicatormapping - the known base class being selected
public void load(KodoStateManager sm,
JDBCStoreManager store,
Result res)
throws SQLException
VersionIndicatorload in class VersionIndicator
public void insert(KodoStateManager sm,
RowManager rm)
throws SQLException
Mappinginsert in class Indicator
public void update(KodoStateManager sm,
RowManager rm)
throws SQLException
Mappingupdate in class Indicatorkodo.jdbc.meta.MappingMapping.insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)
public void delete(KodoStateManager sm,
RowManager rm)
throws SQLException
Mappingdelete in class Indicatorkodo.jdbc.meta.MappingMapping.insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)public Serializable detachVersion(Object version)
VersionIndicatordetachVersion in class VersionIndicatorpublic Object attachVersion(Serializable version)
VersionIndicatorattachVersion in class VersionIndicator
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||