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_VALUES
absFieldNumber, 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, setString
equals, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getTable, getType, getValueForColumnMapping, 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 getNumberOfColumnMappings()
getNumberOfColumnMappings
in class JavaTypeMapping
public ColumnMapping getColumnMapping(int index)
getColumnMapping
in class JavaTypeMapping
index
- The mapping indexpublic ColumnMapping[] getColumnMappings()
getColumnMappings
in class JavaTypeMapping
public void addColumnMapping(ColumnMapping colMapping)
addColumnMapping
in class JavaTypeMapping
colMapping
- 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 © 2020. All rights reserved.