public class PersistableIdMapping extends PersistableMapping
cmd
javaTypeMappings, numberOfDatastoreMappings
absFieldNumber, datastoreMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type
Constructor and Description |
---|
PersistableIdMapping(PersistableMapping pcMapping)
Constructor used to generate a PCMapping representing only the identity of the object.
|
Modifier and Type | Method and Description |
---|---|
Object |
getObject(org.datanucleus.ExecutionContext ec,
ResultSet rs,
int[] param)
Returns an identity for a persistable class.
|
void |
setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] param,
Object value)
Method to set the object based on an input identity.
|
getJavaType, getValueForDatastoreMapping, initialize, insertPostProcessing, postFetch, postInsert, postUpdate, preDelete, prepareDatastoreMapping, setObject
addJavaTypeMapping, getDatastoreMapping, getDatastoreMappings, getJavaTypeMapping, getNumberOfDatastoreMappings
addDatastoreMapping, equals, failureMessage, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, getLong, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getTable, getType, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberMetaData, setReferenceMapping, setRoleForMember, setShort, setString, setTable
public PersistableIdMapping(PersistableMapping pcMapping)
pcMapping
- The mapping to base it onpublic Object getObject(org.datanucleus.ExecutionContext ec, ResultSet rs, int[] param)
getObject
in class PersistableMapping
ec
- The ExecutionContextrs
- The ResultSetparam
- Array of parameter ids in the ResultSet to retrievepublic void setObject(org.datanucleus.ExecutionContext ec, PreparedStatement ps, int[] param, Object value)
setObject
in class PersistableMapping
ec
- ExecutionContextps
- PreparedStatementparam
- Parameter positions to populate when setting the valuevalue
- The identityCopyright © 2015. All rights reserved.