|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.mapping.JavaTypeMapping
org.jpox.store.mapping.SingleFieldMultiMapping
public abstract class SingleFieldMultiMapping
Mapping to represent a field that is mapped to multiple datastore columns.
| Field Summary | |
|---|---|
protected DatastoreContainerObject |
datastoreContainer
The datastore container storing this field. |
| Fields inherited from class org.jpox.store.mapping.JavaTypeMapping |
|---|
datastoreMappings, dba, fmd, LOCALISER, referenceMapping, type |
| Constructor Summary | |
|---|---|
SingleFieldMultiMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer)
Constructor. |
|
SingleFieldMultiMapping(DatastoreAdapter dba,
java.lang.String type)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addDatastoreField(java.lang.String typeName)
Convenience method to add a datastore field for this mapping. |
DatastoreContainerObject |
getDatastoreContainer()
Accessor for the datastore class (e.g in an RDBMS context, the Table) |
boolean |
includeInFetchStatement()
Accessor for whether this mapping is to be included in any fetch statement. |
boolean |
includeInInsertStatement()
Accessor for whether this mapping is to be included in the insert statement. |
boolean |
includeInUpdateStatement()
Accessor for whether this mapping is to be included in the update statement. |
| Methods inherited from class org.jpox.store.mapping.JavaTypeMapping |
|---|
addDataStoreMapping, failureMessage, getBoolean, getByte, getChar, getDataStoreMapping, getDataStoreMappings, getDouble, getFieldMetaData, getFloat, getInt, getJavaType, getLong, getNumberOfDatastoreFields, getObject, getObject, getReferenceMapping, getSampleValue, getShort, getString, getType, isNullable, newLiteral, newScalarExpression, setBoolean, setByte, setChar, setDefault, setDouble, setFloat, setInt, setLong, setObject, setObject, setReferenceMapping, setShort, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DatastoreContainerObject datastoreContainer
| Constructor Detail |
|---|
public SingleFieldMultiMapping(DatastoreAdapter dba,
java.lang.String type)
dba - Datastore Adaptertype - Type of the field
public SingleFieldMultiMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer)
dba - Datastore Adapterfmd - AbstractPropertyMetaData for the field being mappeddatastoreContainer - Table containing the mapped object| Method Detail |
|---|
protected void addDatastoreField(java.lang.String typeName)
typeName - Java type of the field to add the column for.public DatastoreContainerObject getDatastoreContainer()
getDatastoreContainer in class JavaTypeMappingpublic boolean includeInFetchStatement()
includeInFetchStatement in class JavaTypeMappingpublic boolean includeInUpdateStatement()
includeInUpdateStatement in class JavaTypeMappingpublic boolean includeInInsertStatement()
includeInInsertStatement in class JavaTypeMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||