public class VersionMapping extends SingleFieldMapping
absFieldNumber, datastoreMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type
Constructor and Description |
---|
VersionMapping(Table table,
JavaTypeMapping delegate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDatastoreMapping(DatastoreMapping datastoreMapping)
Method to add a datastore mapping.
|
DatastoreMapping |
getDatastoreMapping(int index)
Accessor for a datastore mapping.
|
DatastoreMapping[] |
getDatastoreMappings()
Accessor for the datastore mappings for this java type.
|
Class |
getJavaType()
Accessor for the type represented here, returning the class itself
|
int |
getNumberOfDatastoreMappings()
Accessor for the number of datastore fields.
|
Object |
getObject(org.datanucleus.ExecutionContext ec,
ResultSet resultSet,
int[] exprIndex)
Accessor for the object in this column
|
boolean |
includeInFetchStatement()
Accessor for whether to include this column in any fetch statement
|
void |
setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] exprIndex,
Object value)
Mutator for the object in this column
|
getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, getLong, getShort, getString, getValidValues, initialize, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString
equals, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getTable, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember, setTable
public VersionMapping(Table table, JavaTypeMapping delegate)
table
- Datastore tabledelegate
- The JavaTypeMapping to delegate the storagepublic boolean includeInFetchStatement()
includeInFetchStatement
in class JavaTypeMapping
public int getNumberOfDatastoreMappings()
getNumberOfDatastoreMappings
in class JavaTypeMapping
public DatastoreMapping getDatastoreMapping(int index)
getDatastoreMapping
in class JavaTypeMapping
index
- The mapping indexpublic DatastoreMapping[] getDatastoreMappings()
getDatastoreMappings
in class JavaTypeMapping
public void addDatastoreMapping(DatastoreMapping datastoreMapping)
addDatastoreMapping
in class JavaTypeMapping
datastoreMapping
- The mappingpublic Class getJavaType()
getJavaType
in class JavaTypeMapping
public void setObject(org.datanucleus.ExecutionContext ec, PreparedStatement ps, int[] exprIndex, Object value)
setObject
in class SingleFieldMapping
ec
- execution contextps
- The statementexprIndex
- The indexesvalue
- The value to set it topublic Object getObject(org.datanucleus.ExecutionContext ec, ResultSet resultSet, int[] exprIndex)
getObject
in class SingleFieldMapping
ec
- execution contextresultSet
- The ResultSet to get the value fromexprIndex
- The indexesCopyright © 2015. All rights reserved.