|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.Mapping
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.ExtensionsMapping
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.map.BaseClassMapping
Class mapping used for base classes in a persistent inheritance tree.
| Field Summary | |
static java.lang.String |
TYPE
|
| Fields inherited from class com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping |
REF_DELETE_ACTION, USE_CLASS_IND, USE_CLASS_MAP, USE_VERSION_IND |
| Fields inherited from class com.solarmetric.rd.kodo.impl.jdbc.meta.Mapping |
DEFAULT, FALSE, LOB, TRUE, UNIQUE |
| Fields inherited from interface com.solarmetric.rd.kodo.meta.ClassMetaData |
CAN_CACHE, ID_APPLICATION, ID_DATASTORE, ID_NONE |
| Constructor Summary | |
BaseClassMapping(com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Constructor. |
|
| Method Summary | |
void |
delete(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
Set the where values appropriately to delete the proper instance, and set all relations on non-secondary tables as updates. |
boolean |
fromMappingInfo(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfo info,
boolean adapt)
Deserialize this mapping from a simple MappingInfo
instance parsed from XML or some other format. |
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassIndicator |
getClassIndicator()
Return the class indicator for this class. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] |
getFieldOrderPrimaryKeyColumns()
Return the primary key columns of this mapping's table in the same order that the primary key fields are declared in the class. |
java.lang.String |
getMappingType()
Return the abbreviated name of this mapping, or the full class name if it is a custom mapping. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Table |
getTable()
Return the mapping's data table. |
com.solarmetric.rd.kodo.impl.jdbc.meta.VersionIndicator |
getVersionIndicator()
Return the version indicator for this class. |
void |
insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
Set values for the mapping into the proper rows. |
void |
joinSuperclass(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Join the mapping to its superclass table. |
boolean |
map()
Map a new instance of this mapping type. |
void |
refSchemaComponents()
Increment the reference count of all used schema components. |
void |
reverseMap(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup schema,
com.solarmetric.rd.kodo.impl.jdbc.meta.ReverseMappingTool tool)
Create mappings from the schema, using the given tool. |
void |
setClassIndicator(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassIndicator cls)
Set the class indicator for this class. |
void |
setTable(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Set the table for the mapping. |
void |
setVersionIndicator(com.solarmetric.rd.kodo.impl.jdbc.meta.VersionIndicator version)
Set the version indicator for this class. |
void |
toMappingInfo(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfo info)
Serialize this mapping to a simple MappingInfo instance
for transfer to XML or some other format. |
void |
update(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
Set values for the mapping into the proper rows. |
| Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.meta.Mapping |
checkIndex, createColumn, delete, getDBDictionary, getForeignKey, getLog, getSchemaGroup, insert, invalidMapping, isCustomDelete, isCustomInsert, isCustomUpdate, setForeignKey, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.solarmetric.rd.kodo.meta.Extensions |
addExtension, addExtension, getBooleanExtension, getBooleanExtension, getDoubleExtension, getDoubleExtension, getEmbeddedExtensions, getEmbeddedExtensions, getExtensionKeys, getExtensionKeys, getExtensionVendors, getIntExtension, getIntExtension, getObjectExtension, getObjectExtension, getStringExtension, getStringExtension, hasExtension, hasExtension, isEmpty, removeEmbeddedExtensions, removeEmbeddedExtensions, removeExtension, removeExtension |
| Field Detail |
public static final java.lang.String TYPE
| Constructor Detail |
public BaseClassMapping(com.solarmetric.rd.kodo.meta.ClassMetaData meta)
| Method Detail |
public void setTable(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
public com.solarmetric.rd.kodo.impl.jdbc.meta.VersionIndicator getVersionIndicator()
ClassMapping
getVersionIndicator in class ClassMappingpublic void setVersionIndicator(com.solarmetric.rd.kodo.impl.jdbc.meta.VersionIndicator version)
ClassMapping
setVersionIndicator in class ClassMappingpublic com.solarmetric.rd.kodo.impl.jdbc.meta.ClassIndicator getClassIndicator()
ClassMapping
getClassIndicator in class ClassMappingpublic void setClassIndicator(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassIndicator cls)
ClassMapping
setClassIndicator in class ClassMappingpublic com.solarmetric.rd.kodo.impl.jdbc.schema.Table getTable()
Mapping
getTable in class Mappingpublic com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] getFieldOrderPrimaryKeyColumns()
ClassMapping
getFieldOrderPrimaryKeyColumns in class ClassMappingpublic java.lang.String getMappingType()
Mapping
getMappingType in class Mappingpublic void toMappingInfo(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfo info)
MappingMappingInfo instance
for transfer to XML or some other format.
toMappingInfo in class Mapping
public boolean fromMappingInfo(com.solarmetric.rd.kodo.impl.jdbc.meta.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, else return false. This method must validate
the given mapping information using the SchemaGroup.findTable(java.lang.String)
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 is
important, as some schema groups use these methods to build themselves
up dynamically rather than reading schema information from the
database.
fromMappingInfo in class Mappingpublic boolean map()
Mapping
map in class Mapping
public void reverseMap(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup schema,
com.solarmetric.rd.kodo.impl.jdbc.meta.ReverseMappingTool tool)
Mapping
reverseMap in class Mappingpublic void refSchemaComponents()
Mapping
refSchemaComponents in class Mappingpublic void joinSuperclass(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
ClassMapping
joinSuperclass in class ClassMapping
public void insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
throws java.sql.SQLException
Mapping
insert in class Mappingjava.sql.SQLException
public void update(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
throws java.sql.SQLException
Mapping
update in class Mappingjava.sql.SQLExceptionMapping.insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager)
public void delete(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
throws java.sql.SQLException
Mapping
delete in class Mappingjava.sql.SQLExceptionMapping.insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||