public class ReferenceIdMapping extends ReferenceMapping
ID_MAPPING, mappingStrategy, PER_IMPLEMENTATION_MAPPING, XCALIA_MAPPING
javaTypeMappings, numberOfDatastoreMappings
absFieldNumber, datastoreMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type
Constructor and Description |
---|
ReferenceIdMapping(ReferenceMapping refMapping)
Constructor used to generate a ReferenceMapping 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, getJavaTypeForDatastoreMapping, getJavaTypeMappingForType, getMappingNumberForValue, getMappingStrategy, getObjectForReferenceString, getReferenceStringForObject, initialize, insertPostProcessing, postFetch, postInsert, postUpdate, preDelete, prepareDatastoreMapping, setObject
addJavaTypeMapping, getDatastoreMapping, getDatastoreMappings, getJavaTypeMapping, getNumberOfDatastoreMappings
addDatastoreMapping, equals, failureMessage, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDouble, getFloat, getInt, getLong, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getTable, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberMetaData, setReferenceMapping, setRoleForMember, setShort, setString, setTable
public ReferenceIdMapping(ReferenceMapping refMapping)
refMapping
- The mapping to base it onpublic Object getObject(org.datanucleus.ExecutionContext ec, ResultSet rs, int[] param)
getObject
in class ReferenceMapping
ec
- execution contextrs
- 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 MultiPersistableMapping
ec
- execution contextps
- PreparedStatementparam
- Parameter positions to populate when setting the valuevalue
- The identityCopyright © 2017. All rights reserved.