|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.meta.DelegatingExtensions | +--kodo.meta.DelegatingClassMetaData | +--kodo.jdbc.meta.AbstractClassMapping | +--kodo.jdbc.meta.BaseClassMapping
Class mapping used for base classes in a persistent inheritance tree.
Field Summary | |
static String |
TYPE
|
Fields inherited from interface kodo.jdbc.meta.ClassMapping |
AUTO_INCREMENT, CLASS_IND, CLASS_INDEXED, CLASS_INDICATOR_VALUE, CLASS_MAP, EXTENSION_KEYS, REF_DELETE_ACTION, SEQUENCE_FACTORY, SEQUENCE_NAME, VERSION_IND, VERSION_INDEXED |
Fields inherited from interface kodo.meta.ClassMetaData |
DATA_CACHE, DATA_CACHE_TIMEOUT, DETACH_FALSE, DETACH_OID_FIELD, DETACH_SERIALIZE, DETACH_STATE_FIELD, DETACH_TRUE, DETACHABLE, ID_APPLICATION, ID_DATASTORE, ID_NONDURABLE, LOCK_GROUPS, SUBCLASS_FETCH_MODE, VALIDATE_ALL, VALIDATE_NONE, VALIDATE_NORESOLVE, VALIDATE_RUNTIME, VALIDATE_UNENHANCED |
Constructor Summary | |
BaseClassMapping(ClassMetaData meta)
Constructor. |
Method Summary | |
void |
addMappingInfoAttributes(Collection attrs)
Add all mapping attributes names used by this mapping to the given collection. |
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. |
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. |
ClassIndicator |
getClassIndicator()
Return the class indicator for this class. |
String |
getMappingType()
Return the abbreviated name of this mapping, or the full class name if it is a custom mapping. |
Column[] |
getPrimaryKeyColumns()
Return the columns this mapping uses to uniquely identify an object. |
Table |
getTable()
Return the mapping's primary data table. |
VersionIndicator |
getVersionIndicator()
Return the version indicator for this class. |
void |
insert(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
void |
invalidateResolve()
For implementation use. |
boolean |
isPrimaryKeyObjectId(boolean hasAll)
Return true if the this class' primary key columns correspond to the base class' primary key columns used to construct oid values. |
boolean |
isVirtualMapping()
Returns false if this mapping represents a table in the database. |
Joins |
joinSuperclass(Joins joins,
boolean toThis)
Join the mapping and its superclass. |
boolean |
map()
Map a new instance of this mapping type. |
void |
refSchemaComponents()
Increment the reference count of all used schema components. |
void |
resolve()
For implementation use. |
void |
reverseMap(SchemaGroup schema,
ReverseMappingTool tool)
Create mappings from the schema, using the given tool. |
void |
setClassIndicator(ClassIndicator cls)
Set the class indicator for this class. |
void |
setPrimaryKeyColumns(Column[] pkCols)
Set the primary key columns for the mapping. |
void |
setTable(Table table)
Set the table for the mapping. |
void |
setVersionIndicator(VersionIndicator version)
Set the version indicator for this class. |
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface com.solarmetric.meta.SourceTracker |
getTrackedResourceName |
Methods inherited from interface kodo.meta.Commentable |
getComments |
Field Detail |
public static final String TYPE
Constructor Detail |
public BaseClassMapping(ClassMetaData meta)
Method Detail |
public boolean isVirtualMapping()
ClassMapping
public void setTable(Table table)
public void setPrimaryKeyColumns(Column[] pkCols)
public VersionIndicator getVersionIndicator()
ClassMapping
public void setVersionIndicator(VersionIndicator version)
ClassMapping
public ClassIndicator getClassIndicator()
ClassMapping
public void setClassIndicator(ClassIndicator cls)
ClassMapping
public Table getTable()
Mapping
public Column[] getPrimaryKeyColumns()
ClassMapping
public boolean isPrimaryKeyObjectId(boolean hasAll)
ClassMapping
kodo.jdbc.meta.ClassMapping
hasAll
- if true, there must be a primary key column for every
base class primary key column; if false the primary key
must only match a subset of the base class primary key
columnspublic String getMappingType()
Mapping
public void toMappingInfo(MappingInfo info)
Mapping
MappingInfo
instance
for transfer to XML or some other format.public void fromMappingInfo(MappingInfo info, boolean adapt)
AbstractClassMapping
fromMappingInfo
in class AbstractClassMapping
kodo.jdbc.meta.AbstractClassMapping
AbstractClassMapping.addMappingInfoAttributes(java.util.Collection)
public void addMappingInfoAttributes(Collection attrs)
Mapping
addMappingInfoAttributes
in class AbstractClassMapping
public boolean map()
Mapping
public void reverseMap(SchemaGroup schema, ReverseMappingTool tool)
Mapping
reverseMap
in class AbstractClassMapping
public void refSchemaComponents()
Mapping
public Joins joinSuperclass(Joins joins, boolean toThis)
ClassMapping
kodo.jdbc.meta.ClassMapping
toThis
- if false, inner join to the superclass table; if
true, outer join from the superclass table to this
tablepublic void insert(KodoStateManager sm, RowManager rm) throws SQLException
Mapping
public void update(KodoStateManager sm, RowManager rm) throws SQLException
Mapping
kodo.jdbc.meta.Mapping
Mapping.insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)
public void delete(KodoStateManager sm, RowManager rm) throws SQLException
Mapping
kodo.jdbc.meta.Mapping
Mapping.insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)
public void invalidateResolve()
ClassMetaData
invalidateResolve
in class AbstractClassMapping
public void resolve()
ClassMetaData
resolve
in class AbstractClassMapping
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |