| java.lang.Object org.jpox.store.mapping.JavaTypeMapping org.jpox.store.mapping.SingleFieldMapping org.jpox.store.mapping.SerialisedMapping org.jpox.store.mapping.SerialisedPCMapping
All known Subclasses: org.jpox.store.mapping.SerialisedKeyPCMapping, org.jpox.store.mapping.SerialisedElementPCMapping, org.jpox.store.mapping.SerialisedValuePCMapping,
SerialisedPCMapping | public class SerialisedPCMapping extends SerialisedMapping (Code) | | 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.
version: $Revision: 1.15 $ |
Method Summary | |
public Object | getObject(ObjectManager om, Object resultSet, int[] exprIndex) Method to extract the value of the PersistenceCapable from a ResultSet.
Parameters: om - The ObjectManager Parameters: resultSet - The ResultSet Parameters: exprIndex - The parameter positions in the result set to use. | public Object | getObject(ObjectManager om, Object resultSet, int[] exprIndex, StateManager ownerSM, int fieldNumber) Method to extract the value of the PersistenceCapable from a ResultSet. | public void | setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value) | public void | setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value, StateManager ownerSM, int fieldNumber) |
getObject | public Object getObject(ObjectManager om, Object resultSet, int[] exprIndex)(Code) | | Method to extract the value of the PersistenceCapable from a ResultSet.
Parameters: om - The ObjectManager Parameters: resultSet - The ResultSet Parameters: exprIndex - The parameter positions in the result set to use. The (deserialised) PersistenceCapable object |
getObject | public Object getObject(ObjectManager om, Object resultSet, int[] exprIndex, StateManager ownerSM, int fieldNumber)(Code) | | Method to extract the value of the PersistenceCapable from a ResultSet.
Parameters: om - The ObjectManager Parameters: resultSet - The ResultSet Parameters: exprIndex - The parameter positions in the result set to use. Parameters: ownerSM - The owning object Parameters: fieldNumber - Absolute number of field in owner object The (deserialised) PersistenceCapable object |
setObject | public void setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value)(Code) | | Method to populate parameter positions in a PreparedStatement with this object
Parameters: om - The Object Manager Parameters: preparedStatement - The Prepared Statement Parameters: exprIndex - The parameter positions to populate Parameters: value - The value of the PC to use in populating the parameter positions |
setObject | public void setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value, StateManager ownerSM, int fieldNumber)(Code) | | Method to populate parameter positions in a PreparedStatement with this object
Parameters: om - The Object Manager Parameters: preparedStatement - The Prepared Statement Parameters: exprIndex - The parameter positions to populate Parameters: value - The value of the PC to use in populating the parameter positions Parameters: ownerSM - State Manager for the owning object Parameters: fieldNumber - field number of this object in the owning object |
Methods inherited from org.jpox.store.mapping.SingleFieldMapping | public boolean equals(Object obj)(Code)(Java Doc) public boolean getBoolean(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public byte getByte(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public char getChar(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public int getDefaultLength(int index)(Code)(Java Doc) public double getDouble(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public float getFloat(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public int getInt(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public String getJavaTypeForDatastoreMapping(int index)(Code)(Java Doc) public long getLong(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public Object getObject(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public short getShort(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public String getString(ObjectManager om, Object resultSet, int[] exprIndex)(Code)(Java Doc) public ScalarExpression[] getValidValues(int index)(Code)(Java Doc) public void initialize(DatastoreAdapter dba, AbstractMemberMetaData fmd, DatastoreContainerObject container, ClassLoaderResolver clr)(Code)(Java Doc) protected void prepareDatastoreMapping()(Code)(Java Doc) public void setBoolean(ObjectManager om, Object preparedStatement, int[] exprIndex, boolean value)(Code)(Java Doc) public void setByte(ObjectManager om, Object preparedStatement, int[] exprIndex, byte value)(Code)(Java Doc) public void setChar(ObjectManager om, Object preparedStatement, int[] exprIndex, char value)(Code)(Java Doc) public void setDouble(ObjectManager om, Object preparedStatement, int[] exprIndex, double value)(Code)(Java Doc) public void setFloat(ObjectManager om, Object preparedStatement, int[] exprIndex, float value)(Code)(Java Doc) public void setInt(ObjectManager om, Object preparedStatement, int[] exprIndex, int value)(Code)(Java Doc) public void setLong(ObjectManager om, Object preparedStatement, int[] exprIndex, long value)(Code)(Java Doc) public void setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value)(Code)(Java Doc) public void setShort(ObjectManager om, Object preparedStatement, int[] exprIndex, short value)(Code)(Java Doc) public void setString(ObjectManager om, Object preparedStatement, int[] exprIndex, String value)(Code)(Java Doc)
|
Methods inherited from org.jpox.store.mapping.JavaTypeMapping | public void addDataStoreMapping(DatastoreMapping datastoreMapping)(Code)(Java Doc) protected String failureMessage(String method)(Code)(Java Doc) public boolean getBoolean(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public byte getByte(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public char getChar(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public DatastoreMapping getDataStoreMapping(int index)(Code)(Java Doc) public DatastoreMapping[] getDataStoreMappings()(Code)(Java Doc) public DatastoreContainerObject getDatastoreContainer()(Code)(Java Doc) public double getDouble(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public AbstractMemberMetaData getFieldMetaData()(Code)(Java Doc) public float getFloat(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public int getInt(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) abstract public Class getJavaType()(Code)(Java Doc) public String getJavaTypeForDatastoreMapping(int index)(Code)(Java Doc) public long getLong(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public int getNumberOfDatastoreFields()(Code)(Java Doc) public Object getObject(ObjectManager om, Object datastoreResults, int[] exprIndex, StateManager ownerSM, int ownerFieldNumber)(Code)(Java Doc) public Object getObject(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public JavaTypeMapping getReferenceMapping()(Code)(Java Doc) public int getRoleForField()(Code)(Java Doc) abstract public Object getSampleValue(ClassLoaderResolver clr)(Code)(Java Doc) public short getShort(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public String getString(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public String getType()(Code)(Java Doc) public boolean includeInFetchStatement()(Code)(Java Doc) public boolean includeInInsertStatement()(Code)(Java Doc) public boolean includeInUpdateStatement()(Code)(Java Doc) public void initialize(DatastoreAdapter dba, String type)(Code)(Java Doc) public void initialize(DatastoreAdapter dba, AbstractMemberMetaData fmd, DatastoreContainerObject container, ClassLoaderResolver clr)(Code)(Java Doc) public boolean isNullable()(Code)(Java Doc) public boolean isSerialised()(Code)(Java Doc) abstract public ScalarExpression newLiteral(QueryExpression qs, Object value)(Code)(Java Doc) abstract public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)(Code)(Java Doc) public void setBoolean(ObjectManager om, Object datastoreStatement, int[] exprIndex, boolean value)(Code)(Java Doc) public void setByte(ObjectManager om, Object datastoreStatement, int[] exprIndex, byte value)(Code)(Java Doc) public void setChar(ObjectManager om, Object datastoreStatement, int[] exprIndex, char value)(Code)(Java Doc) public void setDefault(ObjectManager om, Object datastoreStatement, int[] exprIndex)(Code)(Java Doc) public void setDouble(ObjectManager om, Object datastoreStatement, int[] exprIndex, double value)(Code)(Java Doc) public void setFieldInformation(AbstractMemberMetaData fmd, DatastoreContainerObject container)(Code)(Java Doc) public void setFloat(ObjectManager om, Object datastoreStatement, int[] exprIndex, float value)(Code)(Java Doc) public void setInt(ObjectManager om, Object datastoreStatement, int[] exprIndex, int value)(Code)(Java Doc) public void setLong(ObjectManager om, Object datastoreStatement, int[] exprIndex, long value)(Code)(Java Doc) public void setObject(ObjectManager om, Object datastoreStatement, int[] exprIndex, Object value, StateManager ownerSM, int ownerFieldNumber)(Code)(Java Doc) public void setObject(ObjectManager om, Object datastoreStatement, int[] exprIndex, Object value)(Code)(Java Doc) public void setReferenceMapping(JavaTypeMapping referenceMapping)(Code)(Java Doc) public void setRoleForField(int role)(Code)(Java Doc) public void setShort(ObjectManager om, Object datastoreStatement, int[] exprIndex, short value)(Code)(Java Doc) public void setString(ObjectManager om, Object datastoreStatement, int[] exprIndex, String value)(Code)(Java Doc)
|
|
|