|
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
Maps a persistent field to the relational schema.
| Field Summary | |
static java.lang.String |
CONTAINER_META
Extension key used to mark whether collection/map mappings should use a metadata column to differentiate between null and empty containers, and to store comparator information. |
static java.lang.String |
DELETE_ACTION
Extension key used to mark the foreign key delete action to use for the field, if it represents a foreign key to a related object. |
static java.lang.String |
ELEMENT_DELETE_ACTION
Extension key used to mark the foreign key delete action to use for the element values of a collection, if they represent a foreign key to a related object. |
static java.lang.String |
ELEMENT_INDEXED
Extension key used to mark whether element columns are indexed. |
static java.lang.String |
ELEMENT_SIZE
Extension key used to mark the size of element data columns. |
protected static com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] |
EMPTY_COLUMNS
|
static java.lang.String |
INDEXED
Extension key used to mark whether data columns are indexed. |
static java.lang.String |
KEY_DELETE_ACTION
Extension key used to mark the foreign key delete action to use for the keys of a map, if they represent a foreign key to a related object. |
static java.lang.String |
KEY_INDEXED
Extension key used to mark whether key columns are indexed. |
static java.lang.String |
KEY_SIZE
Extension key used to mark the size of key data columns. |
static java.lang.String |
ORDERED
Extension key used to mark whether a collection/array mapping should use an extra column to maintain order. |
static java.lang.String |
REF_DELETE_ACTION
Extension key used to mark the foreign key delete action on reference columns. |
static java.lang.String |
REF_INDEXED
Extension key used to mark whether reference columns are indexed. |
static java.lang.String |
SIZE
Extension key used to mark the size of data columns. |
static int |
TYPE_ASCII_STREAM
|
static int |
TYPE_BINARY_STREAM
|
static int |
TYPE_BLOB
|
static int |
TYPE_BYTES
|
static int |
TYPE_CHAR_STREAM
|
static int |
TYPE_CLOB
|
static int |
TYPE_JDBC_DEFAULT
|
static int |
TYPE_REF
|
static int |
TYPE_SQL_ARRAY
|
static int |
TYPE_SQL_DATE
|
static int |
TYPE_SQL_OBJECT
|
static int |
TYPE_TIME
|
static int |
TYPE_TIMESTAMP
|
static java.lang.String |
USE_FIELD_MAP
Extension key used to indicate the type of field mapping to use. |
static java.lang.String |
USE_NULL_IND
Extension key used to specify the null-indicator field name to use for an embedded mapping. |
static java.lang.String |
VALUE_DELETE_ACTION
Extension key used to mark the foreign key delete action to use for the values of a map, if they represent a foreign key to a related object. |
static java.lang.String |
VALUE_INDEXED
Extension key used to mark whether value columns are indexed. |
static java.lang.String |
VALUE_SIZE
Extension key used to mark the size of value data columns. |
| 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 | |
FieldMapping(com.solarmetric.rd.kodo.meta.FieldMetaData meta)
Constructor. |
|
| Method Summary | |
void |
addExtension(java.lang.String key,
java.lang.Object value)
Add a kodo vendor extension to this entity. |
void |
addExtension(java.lang.String vendor,
java.lang.String key,
java.lang.Object value)
Add a vendor extension to this entity. |
abstract 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. |
abstract 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. |
abstract 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. |
protected com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository |
checkRepository()
|
int |
compareTo(java.lang.Object other)
|
void |
deleteEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
java.sql.Connection conn)
Override this method to customize deleting the given mapping (used with embedded values only). |
void |
deleteEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
Delete values for the mapping. |
boolean |
getBooleanExtension(java.lang.String key)
Get the value as a boolean. |
boolean |
getBooleanExtension(java.lang.String vendor,
java.lang.String key)
Get the value as a boolean. |
abstract com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] |
getColumns()
Return the data columns for this mapping. |
int |
getContainerMeta()
|
java.lang.Object |
getDataStoreValue(java.lang.Object val)
Translate the given field value to its datastore equivalent. |
java.lang.Class |
getDeclaredElementType()
Return the declared class of the described field. |
int |
getDeclaredIndex()
Return the relative index of this persistent/transactional field. |
java.lang.Class |
getDeclaredKeyType()
Return the declared class of the described field. |
java.lang.Class |
getDeclaredType()
Return the declared class of the described field. |
static com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping[] |
getDefaults()
Return the default set of available field mappings. |
int |
getDeleteAction()
|
double |
getDoubleExtension(java.lang.String key)
Get the value as a double. |
double |
getDoubleExtension(java.lang.String vendor,
java.lang.String key)
Get the value as a double. |
int |
getElementDeleteAction()
|
int |
getElementIndexed()
|
java.lang.String |
getElementPCClass()
The value of the FieldMetaData.ELEMENT_PC_CLASS extension key. |
int |
getElementSize()
|
java.lang.Class |
getElementType()
Return the type of objects stored in the array/collection/map; defaults to Object if not specified, or null if this field
does not represent an array/collection/map type. |
int |
getElementTypeCode()
Return the type code of objects stored in the array/collection/map, or -1 if not an array/collection/map. |
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping |
getElementTypeMapping()
Convenience method to make casting from getElementTypeMetaData()
unnecessary. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getElementTypeMetaData()
Return metadata for the element type, or null if not persistent. |
com.solarmetric.rd.kodo.meta.Extensions |
getEmbeddedExtensions(java.lang.String key,
boolean create)
Return the embedded extensions under the extension with the given key. |
com.solarmetric.rd.kodo.meta.Extensions |
getEmbeddedExtensions(java.lang.String vendor,
java.lang.String key,
boolean create)
Return the embedded extensions under the extension with the given key. |
java.lang.String[] |
getExtensionKeys()
Return all extension keys for vendor kodo. |
java.lang.String[] |
getExtensionKeys(java.lang.String vendor)
Return all extension keys for the given vendor. |
java.lang.String[] |
getExtensionVendors()
Return all vendors who have extension keys at this level. |
byte |
getFieldFlag()
Returns the JDO flag type for this field. |
java.lang.String |
getFullName()
Return the full name of the described field, in the form <class>.<field>. |
int |
getIndex()
Return the absolute index of this persistent/transactional field. |
int |
getIndexed()
|
int |
getIntExtension(java.lang.String key)
Get the value as an int. |
int |
getIntExtension(java.lang.String vendor,
java.lang.String key)
Get the value as an int. |
java.lang.String |
getInverseOwner()
Return the field marked as an inverse via the FieldMetaData.INVERSE_OWNER
extension key. |
com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping |
getInverseOwnerMapping()
Convenience method to avoid casting the result of getInverseOwnerMetaData(). |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getInverseOwnerMetaData()
Return the metadata for the field's inverse. |
abstract com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] |
getKeyColumns()
Return the key columns for this mapping, or empty array if none. |
java.lang.Object |
getKeyDataStoreValue(java.lang.Object val)
Translate the given key value to its datastore equivalent. |
int |
getKeyDeleteAction()
|
int |
getKeyIndexed()
|
java.lang.String |
getKeyPCClass()
The value of the FieldMetaData.KEY_PC_CLASS extension key. |
int |
getKeySize()
|
java.lang.Class |
getKeyType()
The type of objects used as keys in the map; defaults to Object if not specified, or null if this field is not a map. |
int |
getKeyTypeCode()
The type code of objects used as keys in the map. |
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping |
getKeyTypeMapping()
Convenience method to make casting from getKeyTypeMetaData()
unnecessary. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getKeyTypeMetaData()
Return metadata for the key type, or null if not persistent. |
int |
getManagement()
Return the management level for the field. |
com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository |
getMappingRepository()
Return the repository for this mapping. |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getMetaData()
Return the underlying metadata. |
java.lang.String |
getName()
Return the name of the described field. |
int |
getNullValue()
How the data store should treat null values for this field: FieldMetaData.NULL_NONE: leave null values as null in the data store
FieldMetaData.NULL_EXCEPTION: throw an exception if this field is null
at commit
FieldMetaData.NULL_DEFAULT: use the database default if this field is
null at commit
Defaults to FieldMetaData.NULL_NONE. |
java.lang.Object |
getObjectExtension(java.lang.String key)
Get the value of a kodo extension. |
java.lang.Object |
getObjectExtension(java.lang.String vendor,
java.lang.String key)
Get the value of an extension. |
int |
getOrdered()
|
com.solarmetric.rd.kodo.meta.ClassMetaData |
getOwner()
Return the owning metadata for this field. |
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping |
getOwnerMapping()
Convenience method to make casting getOwner() unnecessary. |
java.lang.String |
getPCClass()
The value of the FieldMetaData.PC_CLASS extension key. |
int |
getRefDeleteAction()
|
int |
getRefIndexed()
|
int |
getSize()
|
java.lang.String |
getStringExtension(java.lang.String key)
Get the value as a string. |
java.lang.String |
getStringExtension(java.lang.String vendor,
java.lang.String key)
Get the value as a string. |
java.lang.Class |
getType()
Return the class of the described field. |
int |
getTypeCode()
Return the type code of the described field. |
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping |
getTypeMapping()
Convenience method to make casting from getTypeMetaData()
unnecessary. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getTypeMetaData()
Return metadata for the field's type, if the type is persistent. |
java.lang.String |
getUseFieldMapping()
|
int |
getUseNullIndicator()
|
abstract 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. |
boolean |
hasExtension(java.lang.String key)
Return true if the extension with the given key exists for vendor kodo. |
boolean |
hasExtension(java.lang.String vendor,
java.lang.String key)
Return true if the extension with the given key exists for the given vendor. |
void |
invalidateResolve()
For implemntation use. |
java.lang.Boolean |
isCustomDeleteEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Return Boolean.FALSE if this mapping does not customize the
delete process, Boolean.TRUE if it does, or null if it does
customize the delete, but also relies on the standard delete method
being called. |
java.lang.Boolean |
isCustomNullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Return Boolean.FALSE if this mapping does not customize the
nulling process, Boolean.TRUE if it does, or null if it does
customize the nulling, but also relies on the standard nulling method
being called. |
boolean |
isDeleteActionDeferred()
|
boolean |
isDependent()
Return true if the FieldMetaData.DEPENDENT extension key is
true and the field is a first class object. |
protected boolean |
isEager()
Return whether this mapping can be selected in "eagerly" in batch mode, rather than on-demand. |
boolean |
isElementDeleteActionDeferred()
|
boolean |
isElementDependent()
Return true if the FieldMetaData.ELEMENT_DEPENDENT/FieldMetaData.VALUE_DEPENDENT
extension key is true and the element/value contains first class
objects. |
protected boolean |
isElementEager()
Return whether this mapping can be selected in "eagerly" in batch mode, rather than on-demand. |
boolean |
isEmbedded()
This attribute is a hint to the JDO implementation to store this field in the same instance as the class, rather than as a separate datastore instance. |
boolean |
isEmbeddedElement()
A hint to the JDO implementation on whether the arary/collection/map values should be stored as part of the instance rather than as their own instances in the data store. |
boolean |
isEmbeddedKey()
A hint to the JDO implementation on whether the map keys should be stored as part of the instance rather than as their own instances in the data store. |
boolean |
isEmpty()
Return true if there are no keys for any vendor. |
boolean |
isExplicit()
Return true if the field is explicitly declared in the metadata. |
boolean |
isInDefaultFetchGroup()
Return true if the field should be fetched at once along with all other default fetch group fields, rather than individually. |
boolean |
isKeyDeleteActionDeferred()
|
boolean |
isKeyDependent()
Return true if the FieldMetaData.KEY_DEPENDENT extension key
is true and the key contains first class objects. |
protected boolean |
isKeyEager()
Return whether this mapping can be selected in "eagerly" in batch mode, rather than on-demand. |
boolean |
isPrimaryKey()
If true, the field was specified in the meta data to be a primary key field. |
boolean |
isRefDeleteActionDeferred()
|
protected static boolean |
isValue(int type)
Return true if the given type code represents a simple JDBC value. |
abstract void |
join(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Join this value to the class table. |
abstract void |
joinKey(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Join the key value to the class table. |
abstract void |
joinKeyRelation(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Join this value's table to the table for the related first class object key type, if any. |
abstract void |
joinRelation(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
Join this value's table to the table for the related first class object type, if any. |
abstract void |
load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
java.sql.Connection conn)
Load secondary data. |
abstract 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. |
com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping |
newInstance(com.solarmetric.rd.kodo.meta.FieldMetaData meta)
Return a new instance of this class. |
static com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping |
newInstance(java.lang.String type,
com.solarmetric.rd.kodo.meta.FieldMetaData meta)
Return the mapping for the given mapping name. |
void |
nullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
java.sql.Connection conn)
Override this method to customize nulling the given mapping (used with embedded values only). |
void |
nullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
Null values for the mapping. |
boolean |
removeEmbeddedExtensions(java.lang.String key)
Remove the embedded extensions for the given key. |
boolean |
removeEmbeddedExtensions(java.lang.String vendor,
java.lang.String key)
Remove the embedded extensions for the given key. |
boolean |
removeExtension(java.lang.String key)
Remove a kodo vendor extension to this entity. |
boolean |
removeExtension(java.lang.String vendor,
java.lang.String key)
Remove a vendor extension to this entity. |
void |
resolve()
For implementation use. |
abstract void |
select(com.solarmetric.rd.kodo.impl.jdbc.runtime.Select sel,
boolean multiple)
Select the virtual row columns of this mapping. |
abstract 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 |
setContainerMeta(int meta)
|
void |
setDeclaredIndex(int index)
Used by ClassMetaData to set index. |
void |
setDeleteAction(int action,
boolean deferred)
|
void |
setDependent(boolean cascade)
Set the value of the FieldMetaData.DEPENDENT standard extension. |
void |
setElementDeleteAction(int action,
boolean deferred)
|
void |
setElementDependent(boolean cascade)
Set the value of the FieldMetaData.ELEMENT_DEPENDENT extension key. |
void |
setElementIndexed(int idx)
|
void |
setElementPCClass(java.lang.String pc)
The value of the FieldMetaData.ELEMENT_PC_CLASS extension key. |
void |
setElementSize(int size)
|
void |
setElementType(java.lang.Class cls)
Set the element class for this array/collection/map field. |
void |
setEmbedded(boolean embedded)
Set the embedded value for the field. |
void |
setEmbeddedElement(boolean embedded)
Set whether the elements should be embedded. |
void |
setEmbeddedKey(boolean embedded)
Set whether the keys are embedded. |
void |
setExplicit(boolean explicit)
Set whether the field was explicitly declared in the metadata. |
void |
setInDefaultFetchGroup(boolean dfg)
Set whether the field is in the default fetch group. |
void |
setIndex(int index)
Used by ClassMetaData to set index. |
void |
setIndexed(int idx)
|
void |
setInverseOwner(java.lang.String inverse)
Set the field marked as an inverse via the FieldMetaData.INVERSE_OWNER
extension key. |
void |
setKeyDeleteAction(int action,
boolean deferred)
|
void |
setKeyDependent(boolean cascade)
Set the value of the FieldMetaData.KEY_DEPENDENT extension key. |
void |
setKeyIndexed(int idx)
|
void |
setKeyPCClass(java.lang.String pc)
The value of the FieldMetaData.KEY_PC_CLASS extension key. |
void |
setKeySize(int size)
|
void |
setKeyType(java.lang.Class cls)
Set the key type for this map field. |
void |
setManagement(int manage)
Set the management level for the field. |
void |
setName(java.lang.String name)
Set the name of the described field. |
void |
setNullValue(int nullValue)
Set the null action for the field. |
void |
setOrdered(int ordered)
|
void |
setOwner(com.solarmetric.rd.kodo.meta.ClassMetaData owner)
Set the owning metadata for this field. |
void |
setPCClass(java.lang.String pc)
The value of the FieldMetaData.PC_CLASS extension key. |
void |
setPrimaryKey(boolean primKey)
Set whether this is a primary key field. |
void |
setRefDeleteAction(int action,
boolean deferred)
|
void |
setRefIndexed(int idx)
|
void |
setSize(int size)
|
void |
setType(java.lang.Class type)
Set the class of the described field. |
void |
setUseFieldMapping(java.lang.String map)
|
void |
setUseNullIndicator(int ind)
|
java.lang.String |
toString()
|
| Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.meta.Mapping |
checkIndex, createColumn, delete, delete, fromMappingInfo, getDBDictionary, getForeignKey, getLog, getMappingType, getSchemaGroup, getTable, insert, insert, invalidMapping, isCustomDelete, isCustomInsert, isCustomUpdate, map, refSchemaComponents, reverseMap, setForeignKey, toMappingInfo, update, 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 USE_FIELD_MAP
public static final java.lang.String SIZE
public static final java.lang.String ELEMENT_SIZE
SIZE,
Constant Field Valuespublic static final java.lang.String VALUE_SIZE
SIZE,
Constant Field Valuespublic static final java.lang.String KEY_SIZE
SIZE,
Constant Field Valuespublic static final java.lang.String INDEXED
true, false, or unique.
Default depends on the mapping involved.
public static final java.lang.String ELEMENT_INDEXED
INDEXED,
Constant Field Valuespublic static final java.lang.String VALUE_INDEXED
INDEXED,
Constant Field Valuespublic static final java.lang.String KEY_INDEXED
INDEXED,
Constant Field Valuespublic static final java.lang.String REF_INDEXED
INDEXED,
Constant Field Valuespublic static final java.lang.String CONTAINER_META
true or false . Defaults to false.
public static final java.lang.String ORDERED
true and false.
public static final java.lang.String DELETE_ACTION
none, null,
null-deferred, default,
default-deferred, exception,
exception-deferred, cascade,
cascade-deferred. Default depends on mapping involved.
public static final java.lang.String ELEMENT_DELETE_ACTION
DELETE_ACTION,
Constant Field Valuespublic static final java.lang.String KEY_DELETE_ACTION
DELETE_ACTION,
Constant Field Valuespublic static final java.lang.String VALUE_DELETE_ACTION
DELETE_ACTION,
Constant Field Valuespublic static final java.lang.String REF_DELETE_ACTION
DELETE_ACTION,
Constant Field Valuespublic static final java.lang.String USE_NULL_IND
true or
false. Defaults to true.
public static final int TYPE_SQL_ARRAY
public static final int TYPE_ASCII_STREAM
public static final int TYPE_BINARY_STREAM
public static final int TYPE_BLOB
public static final int TYPE_BYTES
public static final int TYPE_CHAR_STREAM
public static final int TYPE_CLOB
public static final int TYPE_SQL_DATE
public static final int TYPE_SQL_OBJECT
public static final int TYPE_REF
public static final int TYPE_TIME
public static final int TYPE_TIMESTAMP
public static final int TYPE_JDBC_DEFAULT
protected static final com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] EMPTY_COLUMNS
| Constructor Detail |
public FieldMapping(com.solarmetric.rd.kodo.meta.FieldMetaData meta)
| Method Detail |
public static com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping newInstance(java.lang.String type,
com.solarmetric.rd.kodo.meta.FieldMetaData meta)
public static com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping[] getDefaults()
public com.solarmetric.rd.kodo.meta.FieldMetaData getMetaData()
public abstract com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] getColumns()
public abstract com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] getKeyColumns()
public abstract com.solarmetric.rd.kodo.impl.jdbc.schema.Table getVRowTable()
public abstract java.lang.Boolean selectVRowData(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
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.
public abstract void select(com.solarmetric.rd.kodo.impl.jdbc.runtime.Select sel,
boolean multiple)
sel - the select to add tomultiple - whether this select is expected to match multiple
objects
public abstract 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
java.sql.SQLException
public abstract void load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
public void nullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
throws java.sql.SQLException
java.sql.SQLExceptionMapping.insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager)
public void deleteEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager rm)
throws java.sql.SQLException
java.sql.SQLExceptionMapping.insert(com.solarmetric.rd.kodo.runtime.StateManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.RowManager)public java.lang.Boolean isCustomNullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Boolean.FALSE if this mapping does not customize the
nulling process, Boolean.TRUE if it does, or null if it does
customize the nulling, but also relies on the standard nulling method
being called. Implement the
nullEmbedded(StateManagerImpl,JDBCStoreManager,Connection)
method to override the default update behavior.
public java.lang.Boolean isCustomDeleteEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
Boolean.FALSE if this mapping does not customize the
delete process, Boolean.TRUE if it does, or null if it does
customize the delete, but also relies on the standard delete method
being called. Implement the
deleteEmbedded(StateManagerImpl,JDBCStoreManager,Connection)
method to override the default update behavior.
public void nullEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
public void deleteEmbedded(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.JDBCStoreManager store,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getDataStoreValue(java.lang.Object val)
public java.lang.Object getKeyDataStoreValue(java.lang.Object val)
public abstract void appendIsEmpty(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public abstract void appendIsNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public abstract void appendIsNotNull(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer sql,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public abstract void join(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public abstract void joinKey(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public abstract void joinRelation(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public abstract void joinKeyRelation(com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins joins)
public com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping newInstance(com.solarmetric.rd.kodo.meta.FieldMetaData meta)
protected static boolean isValue(int type)
protected boolean isEager()
protected boolean isElementEager()
protected boolean isKeyEager()
public java.lang.String getUseFieldMapping()
public void setUseFieldMapping(java.lang.String map)
public int getSize()
public void setSize(int size)
public int getElementSize()
public void setElementSize(int size)
public int getKeySize()
public void setKeySize(int size)
public int getIndexed()
public void setIndexed(int idx)
public int getElementIndexed()
public void setElementIndexed(int idx)
public int getKeyIndexed()
public void setKeyIndexed(int idx)
public int getRefIndexed()
public void setRefIndexed(int idx)
public int getContainerMeta()
public void setContainerMeta(int meta)
public int getOrdered()
public void setOrdered(int ordered)
public int getDeleteAction()
public boolean isDeleteActionDeferred()
public void setDeleteAction(int action,
boolean deferred)
public int getElementDeleteAction()
public boolean isElementDeleteActionDeferred()
public void setElementDeleteAction(int action,
boolean deferred)
public int getKeyDeleteAction()
public boolean isKeyDeleteActionDeferred()
public void setKeyDeleteAction(int action,
boolean deferred)
public int getRefDeleteAction()
public boolean isRefDeleteActionDeferred()
public void setRefDeleteAction(int action,
boolean deferred)
public int getUseNullIndicator()
public void setUseNullIndicator(int ind)
public com.solarmetric.rd.kodo.meta.ClassMetaData getOwner()
FieldMetaData
getOwner in interface FieldMetaDatapublic com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping getOwnerMapping()
getOwner() unnecessary.
public void setOwner(com.solarmetric.rd.kodo.meta.ClassMetaData owner)
FieldMetaData
setOwner in interface FieldMetaDatapublic java.lang.String getName()
FieldMetaData
getName in interface FieldMetaDatapublic void setName(java.lang.String name)
FieldMetaData
setName in interface FieldMetaDatapublic java.lang.String getFullName()
FieldMetaData<class>.<field>.
getFullName in interface FieldMetaDatapublic java.lang.Class getType()
FieldMetaData
getType in interface FieldMetaDatapublic void setType(java.lang.Class type)
FieldMetaData
setType in interface FieldMetaDatapublic java.lang.Class getDeclaredType()
FieldMetaDataFieldMetaData.getType() if the user indicates
a more specific type with the FieldMetaData.PC_CLASS extension.
getDeclaredType in interface FieldMetaDatapublic int getTypeCode()
FieldMetaData
getTypeCode in interface FieldMetaDatapublic com.solarmetric.rd.kodo.meta.ClassMetaData getTypeMetaData()
FieldMetaData
getTypeMetaData in interface FieldMetaDatapublic com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping getTypeMapping()
getTypeMetaData()
unnecessary.
public int getIndex()
FieldMetaData
getIndex in interface FieldMetaDatapublic void setIndex(int index)
FieldMetaDataClassMetaData to set index.
setIndex in interface FieldMetaDatapublic int getDeclaredIndex()
FieldMetaData
getDeclaredIndex in interface FieldMetaDatapublic void setDeclaredIndex(int index)
FieldMetaDataClassMetaData to set index.
setDeclaredIndex in interface FieldMetaDatapublic int getManagement()
FieldMetaDataFieldMetaData.MANAGE_PERSISTENT: the field is persistentFieldMetaData.MANAGE_TRANSACTIONAL: the field is transactional but not
persistentFieldMetaData.MANAGE_NONE: the field is not managedFieldMetaData.MANAGE_PERSISTENT.
getManagement in interface FieldMetaDatapublic void setManagement(int manage)
FieldMetaData
setManagement in interface FieldMetaDataFieldMetaData.getManagement()public boolean isPrimaryKey()
FieldMetaData
isPrimaryKey in interface FieldMetaDatapublic void setPrimaryKey(boolean primKey)
FieldMetaData
setPrimaryKey in interface FieldMetaDatapublic byte getFieldFlag()
FieldMetaDataPersistenceCapable interface.
getFieldFlag in interface FieldMetaDatapublic int getNullValue()
FieldMetaDataFieldMetaData.NULL_NONE: leave null values as null in the data storeFieldMetaData.NULL_EXCEPTION: throw an exception if this field is null
at commitFieldMetaData.NULL_DEFAULT: use the database default if this field is
null at commitFieldMetaData.NULL_NONE.
getNullValue in interface FieldMetaDatapublic void setNullValue(int nullValue)
FieldMetaData
setNullValue in interface FieldMetaDataFieldMetaData.getNullValue()public boolean isExplicit()
FieldMetaData
isExplicit in interface FieldMetaDatapublic void setExplicit(boolean explicit)
FieldMetaData
setExplicit in interface FieldMetaDatapublic boolean isInDefaultFetchGroup()
FieldMetaData
isInDefaultFetchGroup in interface FieldMetaDatapublic void setInDefaultFetchGroup(boolean dfg)
FieldMetaData
setInDefaultFetchGroup in interface FieldMetaDatapublic boolean isEmbedded()
FieldMetaData
isEmbedded in interface FieldMetaDatapublic void setEmbedded(boolean embedded)
FieldMetaData
setEmbedded in interface FieldMetaDatapublic java.lang.Class getElementType()
FieldMetaDataObject if not specified, or null if this field
does not represent an array/collection/map type.
getElementType in interface FieldMetaDatapublic java.lang.Class getDeclaredElementType()
FieldMetaDataFieldMetaData.getElementType() if the user indicates
a more specific type with the FieldMetaData.ELEMENT_PC_CLASS extension.
getDeclaredElementType in interface FieldMetaDatapublic int getElementTypeCode()
FieldMetaData
getElementTypeCode in interface FieldMetaDatapublic com.solarmetric.rd.kodo.meta.ClassMetaData getElementTypeMetaData()
FieldMetaData
getElementTypeMetaData in interface FieldMetaDatapublic com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping getElementTypeMapping()
getElementTypeMetaData()
unnecessary.
public void setElementType(java.lang.Class cls)
FieldMetaData
setElementType in interface FieldMetaDatapublic boolean isEmbeddedElement()
FieldMetaData
isEmbeddedElement in interface FieldMetaDatapublic void setEmbeddedElement(boolean embedded)
FieldMetaData
setEmbeddedElement in interface FieldMetaDatapublic java.lang.Class getKeyType()
FieldMetaDataObject if not specified, or null if this field is not a map.
getKeyType in interface FieldMetaDatapublic java.lang.Class getDeclaredKeyType()
FieldMetaDataFieldMetaData.getKeyType() if the user indicates
a more specific type with the FieldMetaData.KEY_PC_CLASS extension.
getDeclaredKeyType in interface FieldMetaDatapublic int getKeyTypeCode()
FieldMetaData
getKeyTypeCode in interface FieldMetaDatapublic com.solarmetric.rd.kodo.meta.ClassMetaData getKeyTypeMetaData()
FieldMetaData
getKeyTypeMetaData in interface FieldMetaDatapublic com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping getKeyTypeMapping()
getKeyTypeMetaData()
unnecessary.
public void setKeyType(java.lang.Class cls)
FieldMetaData
setKeyType in interface FieldMetaDatapublic boolean isEmbeddedKey()
FieldMetaData
isEmbeddedKey in interface FieldMetaDatapublic void setEmbeddedKey(boolean embedded)
FieldMetaData
setEmbeddedKey in interface FieldMetaDatapublic java.lang.String getInverseOwner()
FieldMetaDataFieldMetaData.INVERSE_OWNER
extension key.
getInverseOwner in interface FieldMetaDatapublic void setInverseOwner(java.lang.String inverse)
FieldMetaDataFieldMetaData.INVERSE_OWNER
extension key.
setInverseOwner in interface FieldMetaDatapublic com.solarmetric.rd.kodo.meta.FieldMetaData getInverseOwnerMetaData()
FieldMetaData
getInverseOwnerMetaData in interface FieldMetaDatapublic com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping getInverseOwnerMapping()
getInverseOwnerMetaData().
public boolean isDependent()
FieldMetaDataFieldMetaData.DEPENDENT extension key is
true and the field is a first class object.
isDependent in interface FieldMetaDatapublic void setDependent(boolean cascade)
FieldMetaDataFieldMetaData.DEPENDENT standard extension.
setDependent in interface FieldMetaDatapublic boolean isElementDependent()
FieldMetaDataFieldMetaData.ELEMENT_DEPENDENT/FieldMetaData.VALUE_DEPENDENT
extension key is true and the element/value contains first class
objects.
isElementDependent in interface FieldMetaDatapublic void setElementDependent(boolean cascade)
FieldMetaDataFieldMetaData.ELEMENT_DEPENDENT extension key.
setElementDependent in interface FieldMetaDatapublic boolean isKeyDependent()
FieldMetaDataFieldMetaData.KEY_DEPENDENT extension key
is true and the key contains first class objects.
isKeyDependent in interface FieldMetaDatapublic void setKeyDependent(boolean cascade)
FieldMetaDataFieldMetaData.KEY_DEPENDENT extension key.
setKeyDependent in interface FieldMetaDatapublic java.lang.String getPCClass()
FieldMetaDataFieldMetaData.PC_CLASS extension key.
getPCClass in interface FieldMetaDatapublic void setPCClass(java.lang.String pc)
FieldMetaDataFieldMetaData.PC_CLASS extension key.
setPCClass in interface FieldMetaDatapublic java.lang.String getElementPCClass()
FieldMetaDataFieldMetaData.ELEMENT_PC_CLASS extension key.
getElementPCClass in interface FieldMetaDatapublic void setElementPCClass(java.lang.String pc)
FieldMetaDataFieldMetaData.ELEMENT_PC_CLASS extension key.
setElementPCClass in interface FieldMetaDatapublic java.lang.String getKeyPCClass()
FieldMetaDataFieldMetaData.KEY_PC_CLASS extension key.
getKeyPCClass in interface FieldMetaDatapublic void setKeyPCClass(java.lang.String pc)
FieldMetaDataFieldMetaData.KEY_PC_CLASS extension key.
setKeyPCClass in interface FieldMetaDatapublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic void resolve()
FieldMetaData
resolve in interface FieldMetaDatapublic void invalidateResolve()
FieldMetaData
invalidateResolve in interface FieldMetaDatapublic java.lang.String toString()
toString in class java.lang.Objectpublic com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository getMappingRepository()
Mapping
getMappingRepository in class Mappingprotected com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository checkRepository()
public boolean isEmpty()
Extensions
isEmpty in interface Extensionspublic java.lang.String[] getExtensionVendors()
Extensions
getExtensionVendors in interface Extensionspublic java.lang.String[] getExtensionKeys()
Extensionskodo.
getExtensionKeys in interface Extensionspublic java.lang.String[] getExtensionKeys(java.lang.String vendor)
Extensions
getExtensionKeys in interface Extensionspublic boolean hasExtension(java.lang.String key)
Extensionskodo.
hasExtension in interface Extensions
public boolean hasExtension(java.lang.String vendor,
java.lang.String key)
Extensions
hasExtension in interface Extensions
public void addExtension(java.lang.String key,
java.lang.Object value)
Extensionskodo vendor extension to this entity.
addExtension in interface Extensions
public void addExtension(java.lang.String vendor,
java.lang.String key,
java.lang.Object value)
Extensions
addExtension in interface Extensionspublic boolean removeExtension(java.lang.String key)
Extensionskodo vendor extension to this entity.
removeExtension in interface Extensions
public boolean removeExtension(java.lang.String vendor,
java.lang.String key)
Extensions
removeExtension in interface Extensionspublic java.lang.Object getObjectExtension(java.lang.String key)
Extensionskodo extension.
getObjectExtension in interface Extensions
public java.lang.Object getObjectExtension(java.lang.String vendor,
java.lang.String key)
Extensions
getObjectExtension in interface Extensionspublic java.lang.String getStringExtension(java.lang.String key)
Extensions
getStringExtension in interface Extensions
public java.lang.String getStringExtension(java.lang.String vendor,
java.lang.String key)
Extensions
getStringExtension in interface Extensionspublic int getIntExtension(java.lang.String key)
Extensions
getIntExtension in interface Extensions
public int getIntExtension(java.lang.String vendor,
java.lang.String key)
Extensions
getIntExtension in interface Extensionspublic double getDoubleExtension(java.lang.String key)
Extensions
getDoubleExtension in interface Extensions
public double getDoubleExtension(java.lang.String vendor,
java.lang.String key)
Extensions
getDoubleExtension in interface Extensionspublic boolean getBooleanExtension(java.lang.String key)
Extensions
getBooleanExtension in interface Extensions
public boolean getBooleanExtension(java.lang.String vendor,
java.lang.String key)
Extensions
getBooleanExtension in interface Extensions
public com.solarmetric.rd.kodo.meta.Extensions getEmbeddedExtensions(java.lang.String key,
boolean create)
Extensionscreate parameter is true.
getEmbeddedExtensions in interface Extensions
public com.solarmetric.rd.kodo.meta.Extensions getEmbeddedExtensions(java.lang.String vendor,
java.lang.String key,
boolean create)
Extensionscreate parameter is true.
getEmbeddedExtensions in interface Extensionspublic boolean removeEmbeddedExtensions(java.lang.String key)
Extensions
removeEmbeddedExtensions in interface Extensions
public boolean removeEmbeddedExtensions(java.lang.String vendor,
java.lang.String key)
Extensions
removeEmbeddedExtensions in interface Extensions
|
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 | |||||||||