|
||||||||||
| 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.SerialisedPCMapping
public class SerialisedPCMapping
Mapping for a serialised PersistenceCapable object. Extends ObjectMapping since that provides the basic serialisation mechanism, adding on the addition of StateManagers to the serialised object whenever it is required.
| 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 | |
|---|---|
SerialisedPCMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
Constructor. |
|
SerialisedPCMapping(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 SerialisedPCMapping(DatastoreAdapter dba,
java.lang.String type)
dba - Datastore Adaptertype - Type of the object
public SerialisedPCMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
dba - Datastore Adapterfmd - MetaData for the fielddatastoreContainer - Datastore container objectclr - ClassLoader resolver| Method Detail |
|---|
public void setObject(PersistenceManager pm,
java.lang.Object preparedStatement,
int[] exprIndex,
java.lang.Object value)
setObject in class SingleFieldMappingpm - The Persistence ManagerpreparedStatement - The Prepared StatementexprIndex - The parameter positions to populatevalue - The value of the PC to use in populating the parameter positions
public void setObject(PersistenceManager pm,
java.lang.Object preparedStatement,
int[] exprIndex,
java.lang.Object value,
StateManager ownerSM,
int fieldNumber)
setObject in class JavaTypeMappingpm - 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 object
public java.lang.Object getObject(PersistenceManager pm,
java.lang.Object resultSet,
int[] exprIndex)
getObject in class SingleFieldMappingpm - 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 JavaTypeMappingpm - 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 | |||||||||