public class ReferenceIdMapping extends ReferenceMapping
ID_MAPPING, mappingStrategy, PER_IMPLEMENTATION_MAPPING, XCALIA_MAPPINGjavaTypeMappings, numberOfDatastoreMappingsabsFieldNumber, 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, setObjectaddJavaTypeMapping, getDatastoreMapping, getDatastoreMappings, getJavaTypeMapping, getNumberOfDatastoreMappingsaddDatastoreMapping, 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, setTablepublic ReferenceIdMapping(ReferenceMapping refMapping)
refMapping - The mapping to base it onpublic Object getObject(org.datanucleus.ExecutionContext ec, ResultSet rs, int[] param)
getObject in class ReferenceMappingec - 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 MultiPersistableMappingec - execution contextps - PreparedStatementparam - Parameter positions to populate when setting the valuevalue - The identityCopyright © 2019. All rights reserved.