|
|||||||||||
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.SingleFieldMapping
org.jpox.store.mapping.SerialisedMapping
org.jpox.store.mapping.SerialisedReferenceMapping
Mapping for a serialised reference (Interface/Object) field. Extends SerialisedMapping since that provides the basic serialisation mechanism, adding on the addition of StateManagers to the serialised object whenever it is required (since the object is a PersistenceCapable).
Field Summary |
Fields inherited from class org.jpox.store.mapping.SingleFieldMapping |
datastoreContainer, typeInfo |
Fields inherited from class org.jpox.store.mapping.JavaTypeMapping |
datastoreMappings, dba, fmd, LOCALISER, referenceMapping, type |
Constructor Summary | |
SerialisedReferenceMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
Constructor. |
|
SerialisedReferenceMapping(DatastoreAdapter dba,
java.lang.String type)
Constructor. |
Method Summary | |
java.lang.Object |
getObject(PersistenceManager pm,
java.lang.Object resultSet,
int[] exprIndex)
Method to extract the value of the PersistenceCapable from a ResultSet. |
java.lang.Object |
getObject(PersistenceManager pm,
java.lang.Object resultSet,
int[] exprIndex,
StateManager ownerSM,
int fieldNumber)
Method to extract the value of the PersistenceCapable from a ResultSet. |
void |
setObject(PersistenceManager pm,
java.lang.Object preparedStatement,
int[] exprIndex,
java.lang.Object value)
Method to populate parameter positions in a PreparedStatement with this object |
void |
setObject(PersistenceManager pm,
java.lang.Object preparedStatement,
int[] exprIndex,
java.lang.Object value,
StateManager ownerSM,
int fieldNumber)
Method to populate parameter positions in a PreparedStatement with this object |
Methods inherited from class org.jpox.store.mapping.SerialisedMapping |
getJavaType, getSampleValue, newLiteral, newScalarExpression |
Methods inherited from class org.jpox.store.mapping.SingleFieldMapping |
equals, getBoolean, getByte, getChar, getDatastoreContainer, getDouble, getFloat, getInt, getLong, getShort, getString, hasValue, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString |
Methods inherited from class org.jpox.store.mapping.JavaTypeMapping |
addDataStoreMapping, failureMessage, getDataStoreMapping, getDataStoreMappings, getFieldMetaData, getNumberOfDatastoreFields, getReferenceMapping, getType, isNullable, setDefault, setReferenceMapping |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SerialisedReferenceMapping(DatastoreAdapter dba, java.lang.String type)
dba
- Datastore Adaptertype
- Type of the objectpublic SerialisedReferenceMapping(DatastoreAdapter dba, AbstractPropertyMetaData fmd, DatastoreContainerObject datastoreContainer, ClassLoaderResolver clr)
dba
- Datastore Adapterfmd
- MetaData for the fielddatastoreContainer
- Datastore container objectclr
- ClassLoader resolverMethod Detail |
public void setObject(PersistenceManager pm, java.lang.Object preparedStatement, int[] exprIndex, java.lang.Object value)
setObject
in class SingleFieldMapping
pm
- The Persistence ManagerpreparedStatement
- The Prepared StatementexprIndex
- The parameter positions to populatevalue
- The value of the PC to use in populating the parameter positionspublic void setObject(PersistenceManager pm, java.lang.Object preparedStatement, int[] exprIndex, java.lang.Object value, StateManager ownerSM, int fieldNumber)
setObject
in class JavaTypeMapping
pm
- The Persistence ManagerpreparedStatement
- The Prepared StatementexprIndex
- The parameter positions to populatevalue
- The value of the PC to use in populating the parameter positionsownerSM
- State Manager for the owning objectfieldNumber
- field number of this object in the owning objectpublic java.lang.Object getObject(PersistenceManager pm, java.lang.Object resultSet, int[] exprIndex)
getObject
in class SingleFieldMapping
pm
- The Persistence ManagerresultSet
- The ResultSetexprIndex
- The parameter positions in the result set to use.
public java.lang.Object getObject(PersistenceManager pm, java.lang.Object resultSet, int[] exprIndex, StateManager ownerSM, int fieldNumber)
getObject
in class JavaTypeMapping
pm
- The Persistence ManagerresultSet
- The ResultSetexprIndex
- The parameter positions in the result set to use.ownerSM
- The owning objectfieldNumber
- Absolute number of field in owner object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |