|
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.NoneClassMapping
Placeholder mapping for classes that indicate they do not need a mapping because they are never persisted directly.
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 | |
NoneClassMapping(ClassMetaData meta)
Constructor. |
Method Summary | |
protected FieldMapping |
createDefaultFieldMapping(FieldMetaData fmd)
Create a default FieldMapping instance for this
mapping type. |
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. |
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 |
setClassIndicator(ClassIndicator cls)
Set the class indicator for this class. |
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 NoneClassMapping(ClassMetaData meta)
Method Detail |
public 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 boolean map()
Mapping
public Table getTable()
Mapping
public boolean isVirtualMapping()
ClassMapping
public void refSchemaComponents()
Mapping
public 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 VersionIndicator getVersionIndicator()
ClassMapping
public void setVersionIndicator(VersionIndicator version)
ClassMapping
public ClassIndicator getClassIndicator()
ClassMapping
public void setClassIndicator(ClassIndicator cls)
ClassMapping
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 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
tableprotected FieldMapping createDefaultFieldMapping(FieldMetaData fmd)
AbstractClassMapping
FieldMapping
instance for this
mapping type. This will override any mapping the repository
claims for the class mapping.createDefaultFieldMapping
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 |