public abstract class MultiPersistableMapping extends MultiMapping
javaTypeMappings, numberOfColumnMappingsabsFieldNumber, columnMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type| Constructor and Description |
|---|
MultiPersistableMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMappingNumberForValue(org.datanucleus.ExecutionContext ec,
Object value)
Convenience accessor for the number of the java type mapping where the passed value would be
stored.
|
Object |
getObject(org.datanucleus.ExecutionContext ec,
ResultSet rs,
int[] pos)
Method to retrieve an object of this type from the ResultSet.
|
void |
setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] pos,
Object value)
Method to set the parameters in the PreparedStatement with the fields of this object.
|
void |
setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] pos,
Object value,
org.datanucleus.state.ObjectProvider ownerOP,
int ownerFieldNumber)
Sets the specified positions in the PreparedStatement associated with this field, and value.
|
addJavaTypeMapping, getColumnMapping, getColumnMappings, getJavaTypeMapping, getNumberOfColumnMappingsaddColumnMapping, equals, failureMessage, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDouble, getFloat, getInt, getJavaType, getJavaTypeForColumnMapping, getLong, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getTable, getType, getValueForColumnMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberMetaData, setReferenceMapping, setRoleForMember, setShort, setString, setTableprotected int getMappingNumberForValue(org.datanucleus.ExecutionContext ec,
Object value)
ec - ExecutionContextvalue - The valuepublic void setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] pos,
Object value)
setObject in class JavaTypeMappingec - execution contextps - The PreparedStatementpos - The parameter positionsvalue - The object to populate the statement withorg.datanucleus.exceptions.NotYetFlushedException - Thrown if the object is not yet flushed to the datastorepublic void setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] pos,
Object value,
org.datanucleus.state.ObjectProvider ownerOP,
int ownerFieldNumber)
setObject in class JavaTypeMappingec - execution contextps - a datastore object that executes statements in the databasepos - The position(s) of the PreparedStatement to populatevalue - the value stored in this fieldownerOP - the owner ObjectProviderownerFieldNumber - the owner absolute field numberpublic Object getObject(org.datanucleus.ExecutionContext ec, ResultSet rs, int[] pos)
getObject in class JavaTypeMappingec - execution contextrs - The ResultSetpos - The parameter positionsCopyright © 2020. All rights reserved.