public class VersionMapping extends SingleFieldMapping
| Modifier and Type | Class and Description |
|---|---|
static class |
VersionMapping.VersionLongMapping
Version using a Long delegate.
|
static class |
VersionMapping.VersionTimestampMapping
Version using a Timestamp delegate.
|
EXTENSION_CHECK_CONSTRAINT_VALUESabsFieldNumber, columnMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type| Constructor and Description |
|---|
VersionMapping(Table table,
JavaTypeMapping delegate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnMapping(ColumnMapping colMapping)
Method to add a column mapping.
|
ColumnMapping |
getColumnMapping(int index)
Accessor for a datastore mapping.
|
ColumnMapping[] |
getColumnMappings()
Accessor for the datastore mappings for this java type.
|
Class |
getJavaType()
Accessor for the type represented here, returning the class itself
|
int |
getNumberOfColumnMappings()
Accessor for the number of columns.
|
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, getJavaTypeForColumnMapping, getLong, getShort, getString, getValidValues, initialize, prepareColumnMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setStringequals, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getTable, getType, getValueForColumnMapping, 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 getNumberOfColumnMappings()
getNumberOfColumnMappings in class JavaTypeMappingpublic ColumnMapping getColumnMapping(int index)
getColumnMapping in class JavaTypeMappingindex - The mapping indexpublic ColumnMapping[] getColumnMappings()
getColumnMappings in class JavaTypeMappingpublic void addColumnMapping(ColumnMapping colMapping)
addColumnMapping in class JavaTypeMappingcolMapping - 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 © 2020. All rights reserved.