Class DB2DatalinkColumnMapping
java.lang.Object
org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
org.datanucleus.store.rdbms.mapping.column.CharColumnMapping
org.datanucleus.store.rdbms.mapping.column.DB2DatalinkColumnMapping
- All Implemented Interfaces:
ColumnMapping
Mapping of a DB2 "Datalink" column.
-
Nested Class Summary
Nested classes/interfaces inherited from class CharColumnMapping
CharColumnMapping.FormatterInfo -
Field Summary
Fields inherited from class AbstractColumnMapping
column, mapping, storeMgr -
Constructor Summary
ConstructorsConstructorDescriptionDB2DatalinkColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionAccessor for the string to put in any retrieval datastore statement for this field.intMethod to return the java.sql.Types type that this relates to.Accessor for the string to put in any update datastore statements for this field.booleanWhether this mapping is included in the fetch statement.protected voidMethod to initialise the column mapping.Methods inherited from class CharColumnMapping
getBoolean, getChar, getJavaUtilDateFormat, getObject, getString, isStringBased, setBoolean, setChar, setObject, setStringMethods inherited from class AbstractColumnMapping
equals, failureMessage, failureMessage, failureMessage, getByte, getColumn, getDatastoreAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, hashCode, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setByte, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNull
-
Constructor Details
-
DB2DatalinkColumnMapping
Constructor.- Parameters:
mapping- Java type mappingstoreMgr- Store Managercol- Column
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:CharColumnMappingMethod to initialise the column mapping. Provides default length specifications for the CHAR column to fit the data being stored.- Overrides:
initializein classCharColumnMapping
-
getJDBCType
public int getJDBCType()Description copied from class:AbstractColumnMappingMethod to return the java.sql.Types type that this relates to.- Overrides:
getJDBCTypein classCharColumnMapping- Returns:
- The JDBC "type"
-
getInsertionInputParameter
Description copied from class:AbstractColumnMappingAccessor for the string to put in any retrieval datastore statement for this field. In RDBMS, this is typically a ? to be used in JDBC statements.- Specified by:
getInsertionInputParameterin interfaceColumnMapping- Overrides:
getInsertionInputParameterin classAbstractColumnMapping- Returns:
- The input parameter
-
includeInFetchStatement
public boolean includeInFetchStatement()Description copied from class:AbstractColumnMappingWhether this mapping is included in the fetch statement.- Overrides:
includeInFetchStatementin classAbstractColumnMapping- Returns:
- Whether to include in fetch statement
-
getUpdateInputParameter
Description copied from class:AbstractColumnMappingAccessor for the string to put in any update datastore statements for this field. In RDBMS, this is typically a ? to be used in JDBC statements.- Specified by:
getUpdateInputParameterin interfaceColumnMapping- Overrides:
getUpdateInputParameterin classAbstractColumnMapping- Returns:
- The input parameter.
-