|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| 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.EmbeddedClassMapping
|
+--kodo.jdbc.meta.SQLDataOneToOneFieldMapping.SQLEmbeddedClassMapping
| 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 | |
SQLDataOneToOneFieldMapping.SQLEmbeddedClassMapping(ClassMetaData meta,
FieldMapping owner)
|
|
| Method Summary | |
void |
addExtensionKeys(Collection attrs)
Add all the known extension keys to the specified collection; any implementation that utilized new extensions should override this method to include both the known extensions of its superclass as well as its own extension keys. |
void |
addMappingInfoAttributes(Collection attrs)
Add all mapping attributes names used by this mapping to the given collection. |
boolean |
canDelegateEmbeddedInfo()
Returns true if this embedded mapping can delegate mapping to the types mapping information. |
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 |
deleteEmbedded(KodoStateManager sm,
JDBCStoreManager store)
|
void |
deleteEmbedded(KodoStateManager sm,
RowManager rm)
|
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. |
FieldMapping |
getEmbeddingMapping()
If this is an embedded mapping, return the owning field. |
int |
getIdentityType()
Return the type of JDO identity being used. |
JoinableMapping |
getJoinableMapping(Column col)
Return the joinable mapping for the given column. |
String |
getMappingType()
Return the abbreviated name of this mapping, or the full class name if it is a custom mapping. |
Class |
getObjectIdClass()
Return the metadata-specified class to use for the object ID, or null if not specified. |
Column[] |
getPrimaryKeyColumns()
Return the columns this mapping uses to uniquely identify an object. |
FieldMapping[] |
getPrimaryKeyFieldMappings()
Convenience method to make casting from EmbeddedClassMapping.getPrimaryKeyFields()
unnecessary. |
FieldMetaData[] |
getPrimaryKeyFields()
Return primary key fields, or empty array if none. |
Table |
getTable()
Return the mapping's primary data table. |
VersionIndicator |
getVersionIndicator()
Return the version indicator for this class. |
void |
insert(KodoStateManager sm,
JDBCStoreManager store)
Override this method to customize flushing this mapping. |
void |
insert(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
Boolean |
isCustomDeleteEmbedded(KodoStateManager sm)
|
Boolean |
isCustomInsert(KodoStateManager sm)
Return Boolean.FALSE if this mapping does not customize the
insert process, Boolean.TRUE if it does, or null if it does
customize the insert, but also relies on the standard insert method
being called. |
Boolean |
isCustomNullEmbedded(KodoStateManager sm)
|
Boolean |
isCustomUpdate(KodoStateManager sm)
Return Boolean.FALSE if this mapping does not customize the
update process, Boolean.TRUE if it does, or null if it does
customize the update, but also relies on the standard update method
being called. |
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. |
void |
loadEmbeddedFields(KodoStateManager sm,
JDBCStoreManager store,
JDBCFetchConfiguration fetch,
Result res)
|
boolean |
map()
Map a new instance of this mapping type. |
void |
nullEmbedded(KodoStateManager sm,
JDBCStoreManager store)
|
void |
nullEmbedded(KodoStateManager sm,
RowManager rm)
|
void |
refSchemaComponents()
Increment the reference count of all used schema components. |
void |
resolve()
For implementation use. |
void |
setClassIndicator(ClassIndicator cls)
Set the class indicator for this class. |
void |
setRepository(JDOMetaDataRepository repos)
The supplied repository must be a MappingRepository. |
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,
JDBCStoreManager store)
Override this method to customize flushing this mapping. |
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 |
| Constructor Detail |
public SQLDataOneToOneFieldMapping.SQLEmbeddedClassMapping(ClassMetaData meta,
FieldMapping owner)
| Method Detail |
public void addMappingInfoAttributes(Collection attrs)
MappingaddMappingInfoAttributes in class kodo.jdbc.meta.EmbeddedClassMappingpublic void addExtensionKeys(Collection attrs)
ExtensionsaddExtensionKeys in class kodo.jdbc.meta.EmbeddedClassMappingpublic boolean canDelegateEmbeddedInfo()
ClassMappingcanDelegateEmbeddedInfo in class AbstractClassMappingpublic String getMappingType()
Mappingpublic void setRepository(JDOMetaDataRepository repos)
ClassMappingMappingRepository.setRepository in class AbstractClassMappingpublic Table getTable()
Mappingpublic boolean isVirtualMapping()
ClassMappingpublic Column[] getPrimaryKeyColumns()
ClassMappingpublic boolean isPrimaryKeyObjectId(boolean hasAll)
ClassMappingkodo.jdbc.meta.ClassMappinghasAll - 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 int getIdentityType()
ClassMetaDataClassMetaData.ID_DATASTORE: identity managed by the data store and
independent of the fields of the instanceClassMetaData.ID_APPLICATION: identity managed by the application and
defined by one or more fields of the instanceClassMetaData.ID_NONDURABLE: identity managed by the implementation to
guarantee uniqueness in the JVM, but not necessarily in the data
store; this is rarely usedClassMetaData.ID_DATASTORE.getIdentityType in class DelegatingClassMetaDatapublic Class getObjectIdClass()
ClassMetaDatagetObjectIdClass in class DelegatingClassMetaDatapublic FieldMetaData[] getPrimaryKeyFields()
ClassMetaDatagetPrimaryKeyFields in class AbstractClassMappingpublic FieldMapping[] getPrimaryKeyFieldMappings()
ClassMappingClassMetaData.getPrimaryKeyFields()
unnecessary.getPrimaryKeyFieldMappings in class AbstractClassMappingpublic VersionIndicator getVersionIndicator()
ClassMappingpublic void setVersionIndicator(VersionIndicator version)
ClassMappingpublic ClassIndicator getClassIndicator()
ClassMappingpublic void setClassIndicator(ClassIndicator cls)
ClassMappingpublic JoinableMapping getJoinableMapping(Column col)
ClassMappinggetJoinableMapping in class AbstractClassMappingpublic FieldMapping getEmbeddingMapping()
ClassMappinggetEmbeddingMapping in class AbstractClassMappingpublic void toMappingInfo(MappingInfo info)
MappingMappingInfo instance
for transfer to XML or some other format.
public void fromMappingInfo(MappingInfo info,
boolean adapt)
AbstractClassMappingfromMappingInfo in class AbstractClassMappingkodo.jdbc.meta.AbstractClassMappingAbstractClassMapping.addMappingInfoAttributes(java.util.Collection)public boolean map()
Mappingpublic void refSchemaComponents()
Mapping
public Joins joinSuperclass(Joins joins,
boolean toThis)
ClassMappingkodo.jdbc.meta.ClassMappingtoThis - if false, inner join to the superclass table; if
true, outer join from the superclass table to this
table
public void loadEmbeddedFields(KodoStateManager sm,
JDBCStoreManager store,
JDBCFetchConfiguration fetch,
Result res)
throws SQLException
public Boolean isCustomInsert(KodoStateManager sm)
MappingBoolean.FALSE if this mapping does not customize the
insert process, Boolean.TRUE if it does, or null if it does
customize the insert, but also relies on the standard insert method
being called. Implement the
Mapping.insert(KodoStateManager,JDBCStoreManager) method
to implement the custom insertion behavior.isCustomInsert in class AbstractClassMapping
public void insert(KodoStateManager sm,
RowManager rm)
throws SQLException
Mapping
public void insert(KodoStateManager sm,
JDBCStoreManager store)
throws SQLException
Mappinginsert in class AbstractClassMappingpublic Boolean isCustomUpdate(KodoStateManager sm)
MappingBoolean.FALSE if this mapping does not customize the
update process, Boolean.TRUE if it does, or null if it does
customize the update, but also relies on the standard update method
being called. Implement the
Mapping.update(KodoStateManager,JDBCStoreManager) method
to override the default update behavior.isCustomUpdate in class AbstractClassMapping
public void update(KodoStateManager sm,
RowManager rm)
throws SQLException
Mappingkodo.jdbc.meta.MappingMapping.insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)
public void update(KodoStateManager sm,
JDBCStoreManager store)
throws SQLException
Mappingupdate in class AbstractClassMapping
public void delete(KodoStateManager sm,
RowManager rm)
Mappingkodo.jdbc.meta.MappingMapping.insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)public Boolean isCustomNullEmbedded(KodoStateManager sm)
public void nullEmbedded(KodoStateManager sm,
RowManager rm)
throws SQLException
public void nullEmbedded(KodoStateManager sm,
JDBCStoreManager store)
throws SQLException
public Boolean isCustomDeleteEmbedded(KodoStateManager sm)
public void deleteEmbedded(KodoStateManager sm,
RowManager rm)
throws SQLException
public void deleteEmbedded(KodoStateManager sm,
JDBCStoreManager store)
throws SQLException
public void resolve()
ClassMetaDataresolve in class AbstractClassMapping
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||