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, setStringequals, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getTable, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember, setTablepublic VersionMapping(Table table, JavaTypeMapping delegate)
table - Datastore tabledelegate - The JavaTypeMapping to delegate the storagepublic boolean includeInFetchStatement()
includeInFetchStatement in class JavaTypeMappingpublic int getNumberOfDatastoreMappings()
getNumberOfDatastoreMappings in class JavaTypeMappingpublic DatastoreMapping getDatastoreMapping(int index)
getDatastoreMapping in class JavaTypeMappingindex - The mapping indexpublic DatastoreMapping[] getDatastoreMappings()
getDatastoreMappings in class JavaTypeMappingpublic void addDatastoreMapping(DatastoreMapping datastoreMapping)
addDatastoreMapping in class JavaTypeMappingdatastoreMapping - The mappingpublic Class getJavaType()
getJavaType in class JavaTypeMappingpublic void setObject(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
int[] exprIndex,
Object value)
setObject in class SingleFieldMappingec - 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 SingleFieldMappingec - execution contextresultSet - The ResultSet to get the value fromexprIndex - The indexesCopyright © 2017. All rights reserved.