public abstract class MultiPersistableMapping extends MultiMapping
javaTypeMappings, numberOfColumnMappings
absFieldNumber, 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, getNumberOfColumnMappings
addColumnMapping, 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, setTable
protected 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 JavaTypeMapping
ec
- 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 JavaTypeMapping
ec
- 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 JavaTypeMapping
ec
- execution contextrs
- The ResultSetpos
- The parameter positionsCopyright © 2020. All rights reserved.