|
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.FieldMapping
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.map.ReferenceMapping
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.map.ContainerMapping
Base class for collection and map mappings. Handles container metadata and basic query functionality.
| Field Summary |
| Fields inherited from class com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping |
CONTAINER_META, DELETE_ACTION, ELEMENT_DELETE_ACTION, ELEMENT_INDEXED, ELEMENT_SIZE, EMPTY_COLUMNS, INDEXED, KEY_DELETE_ACTION, KEY_INDEXED, KEY_SIZE, ORDERED, REF_DELETE_ACTION, REF_INDEXED, SIZE, TYPE_ASCII_STREAM, TYPE_BINARY_STREAM, TYPE_BLOB, TYPE_BYTES, TYPE_CHAR_STREAM, TYPE_CLOB, TYPE_JDBC_DEFAULT, TYPE_REF, TYPE_SQL_ARRAY, TYPE_SQL_DATE, TYPE_SQL_OBJECT, TYPE_TIME, TYPE_TIMESTAMP, USE_FIELD_MAP, USE_NULL_IND, VALUE_DELETE_ACTION, VALUE_INDEXED, VALUE_SIZE |
| 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.FieldMetaData |
DEPENDENT, ELEMENT_DEPENDENT, ELEMENT_PC_CLASS, INVERSE_OWNER, KEY_DEPENDENT, KEY_PC_CLASS, MANAGE_NONE, MANAGE_PERSISTENT, MANAGE_TRANSACTIONAL, NULL_DEFAULT, NULL_EXCEPTION, NULL_NONE, PC_CLASS, TYPE_ARRAY, TYPE_BIGDECIMAL, TYPE_BIGINTEGER, TYPE_BOOLEAN, TYPE_BOOLEAN_OBJ, TYPE_BYTE, TYPE_BYTE_OBJ, TYPE_CHAR, TYPE_CHAR_OBJ, TYPE_COLLECTION, TYPE_DATE, TYPE_DOUBLE, TYPE_DOUBLE_OBJ, TYPE_FCO, TYPE_FLOAT, TYPE_FLOAT_OBJ, TYPE_INT, TYPE_INT_OBJ, TYPE_LOCALE, TYPE_LONG, TYPE_LONG_OBJ, TYPE_MAP, TYPE_NUMBER, TYPE_OBJECT, TYPE_PC_OBJECT, TYPE_SHORT, TYPE_SHORT_OBJ, TYPE_STRING, VALUE_DEPENDENT, VALUE_PC_CLASS |
| Constructor Summary | |
ContainerMapping(com.solarmetric.rd.kodo.meta.FieldMetaData meta)
Constructor. |
|
| Method Summary | |
void |
appendIsEmpty(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Create a where clause to the given statement asking if this value is empty. |
void |
appendIsNotNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Add a where clause to the given statement asking if this value is not null. |
void |
appendIsNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Add a where clause to the given statement asking if this value is null. |
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.schema.Column |
getMetaDataColumn()
Return the column holding the collection meta data. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Table |
getVRowTable()
Return the table this mapping uses for the columns that are part of the 'virtual row' that this object spans in the database. |
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 |
join(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Join this value to the class table. |
void |
load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Result res)
Load virtual row data; the given result is not guaranteed to contain data for this field, so the field mapping should make sure the result contains its needed column data before loading. |
boolean |
map()
Map a new instance of this mapping type. |
protected java.util.Collection |
newCollection(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Return a new collection to fill with loaded data, taking into account the stored comparator metadata, if any. |
protected java.util.Map |
newMap(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Return a new map to fill with loaded data, taking into account the stored comparator metadata, if any. |
void |
nullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
Null values for the mapping. |
void |
refSchemaComponents()
Increment the reference count of all used schema components. |
void |
select(com.solarmetric.rd.kodo.impl.jdbc.runtime.Select sel,
boolean multiple)
Select the virtual row columns of this mapping. |
java.lang.Boolean |
selectVRowData(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Return Boolean.TRUE if 'virtual row' data needs to be selected,
Boolean.FALSE if it does not need to be, and null
if it would be desirable to select it, but is not necessary. |
void |
setMetaDataColumn(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Set the column holding the collection meta data. |
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.map.ReferenceMapping |
createRefForeignKey, fromMappingInfo, getRefForeignKey, getSelectJoins, getTable, join, setRefForeignKey, wherePrimaryKey |
| Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.meta.Mapping |
checkIndex, createColumn, delete, delete, getDBDictionary, getForeignKey, getLog, getMappingType, getSchemaGroup, insert, invalidMapping, isCustomDelete, isCustomInsert, isCustomUpdate, reverseMap, 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 |
| Constructor Detail |
public ContainerMapping(com.solarmetric.rd.kodo.meta.FieldMetaData meta)
| Method Detail |
public com.solarmetric.rd.kodo.impl.jdbc.schema.Column getMetaDataColumn()
public void setMetaDataColumn(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
public void toMappingInfo(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingInfo info)
MappingMappingInfo instance
for transfer to XML or some other format.
toMappingInfo in class ReferenceMapping
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 Mappingpublic void refSchemaComponents()
Mapping
refSchemaComponents in class ReferenceMapping
public void appendIsEmpty(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
FieldMapping
appendIsEmpty in class FieldMapping
public void appendIsNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
FieldMapping
appendIsNull in class FieldMapping
public void appendIsNotNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
FieldMapping
appendIsNotNull in class FieldMappingpublic void join(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
FieldMapping
join in class FieldMappingpublic com.solarmetric.rd.kodo.impl.jdbc.schema.Table getVRowTable()
FieldMapping
getVRowTable in class FieldMappingpublic java.lang.Boolean selectVRowData(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
FieldMappingBoolean.TRUE if 'virtual row' data needs to be selected,
Boolean.FALSE if it does not need to be, and null
if it would be desirable to select it, but is not necessary.
selectVRowData in class FieldMapping
public void select(com.solarmetric.rd.kodo.impl.jdbc.runtime.Select sel,
boolean multiple)
FieldMapping
select in class FieldMappingsel - the select to add tomultiple - whether this select is expected to match multiple
objects
public void load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Result res)
throws java.sql.SQLException
FieldMapping
load in class FieldMappingjava.sql.SQLException
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 nullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
throws java.sql.SQLException
FieldMapping
nullEmbedded in class FieldMappingjava.sql.SQLExceptionMapping.insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager)protected java.util.Collection newCollection(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
protected java.util.Map newMap(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
|
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 | |||||||||