|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.mapped.mapping.JavaTypeMapping
org.jpox.store.mapped.mapping.MultiMapping
public abstract class MultiMapping
Mapping to represent multiple mappings. This mapping can be used to represent, for example,
| Field Summary | |
|---|---|
protected JavaTypeMapping[] |
javaTypeMappings
The Java mappings represented by this mapping. |
| Fields inherited from class org.jpox.store.mapped.mapping.JavaTypeMapping |
|---|
datastoreContainer, datastoreMappings, dba, fmd, LOCALISER, MAPPING_ARRAY_ELEMENT, MAPPING_COLLECTION_ELEMENT, MAPPING_FIELD, MAPPING_MAP_KEY, MAPPING_MAP_VALUE, referenceMapping, roleForField, type |
| Constructor Summary | |
|---|---|
MultiMapping()
|
|
| Method Summary | |
|---|---|
void |
addJavaTypeMapping(JavaTypeMapping mapping)
Method to add a Java type mapping for a field |
DatastoreMapping |
getDataStoreMapping(int index)
Accessor for a datastore mapping. |
JavaTypeMapping[] |
getJavaTypeMapping()
Accessor for the Java type mappings |
int |
getNumberOfDatastoreFields()
Accessor for the number of datastore fields. |
java.lang.Object |
getObject(ObjectManager om,
java.lang.Object rs,
int[] pos)
Method to retrieve an object of this type from the ResultSet. |
void |
setObject(ObjectManager om,
java.lang.Object ps,
int[] pos,
java.lang.Object value)
Method to set the parameters in the PreparedStatement with the fields of this object. |
void |
setObject(ObjectManager om,
java.lang.Object ps,
int[] pos,
java.lang.Object value,
StateManager ownerSM,
int ownerFieldNumber)
Sets a value into preparedStatement
at position specified by exprIndex. |
| Methods inherited from class org.jpox.store.mapped.mapping.JavaTypeMapping |
|---|
addDataStoreMapping, failureMessage, getBoolean, getByte, getChar, getDatastoreContainer, getDataStoreMappings, getDouble, getFieldMetaData, getFloat, getInt, getJavaType, getJavaTypeForDatastoreMapping, getLong, getObject, getReferenceMapping, getRoleForField, getSampleValue, getShort, getString, getType, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, initialize, isNullable, isSerialised, newLiteral, newScalarExpression, setBoolean, setByte, setChar, setDefault, setDouble, setFieldInformation, setFloat, setInt, setLong, setReferenceMapping, setRoleForField, setShort, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JavaTypeMapping[] javaTypeMappings
| Constructor Detail |
|---|
public MultiMapping()
| Method Detail |
|---|
public void addJavaTypeMapping(JavaTypeMapping mapping)
mapping - The mapping to addpublic JavaTypeMapping[] getJavaTypeMapping()
public int getNumberOfDatastoreFields()
getNumberOfDatastoreFields in class JavaTypeMappingpublic DatastoreMapping getDataStoreMapping(int index)
getDataStoreMapping in class JavaTypeMappingindex - The position of the mapping to return
public void setObject(ObjectManager om,
java.lang.Object ps,
int[] pos,
java.lang.Object value)
setObject in class JavaTypeMappingom - Object Managerps - The PreparedStatementpos - The parameter positionsvalue - The object to populate the statement with
NotYetFlushedException - Thrown if the object is not yet flushed to the datastore
public void setObject(ObjectManager om,
java.lang.Object ps,
int[] pos,
java.lang.Object value,
StateManager ownerSM,
int ownerFieldNumber)
value into preparedStatement
at position specified by exprIndex.
setObject in class JavaTypeMappingom - the ObjectManagerps - a datastore object that executes statements in the databasepos - the position of the value in the statementvalue - the valueownerSM - the owner StateManagerownerFieldNumber - the owner absolute field number
public java.lang.Object getObject(ObjectManager om,
java.lang.Object rs,
int[] pos)
getObject in class JavaTypeMappingom - Object Managerrs - The ResultSetpos - The parameter positions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||