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 org.datanucleus.store.rdbms.mapping.column.CharColumnMapping
CharColumnMapping.FormatterInfo
-
Field Summary
Fields inherited from class org.datanucleus.store.rdbms.mapping.column.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.int
Method 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.boolean
Whether this mapping is included in the fetch statement.protected void
Method to initialise the column mapping.Methods inherited from class org.datanucleus.store.rdbms.mapping.column.CharColumnMapping
getBoolean, getChar, getJavaUtilDateFormat, getObject, getString, isStringBased, setBoolean, setChar, setObject, setString
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.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:CharColumnMapping
Method to initialise the column mapping. Provides default length specifications for the CHAR column to fit the data being stored.- Overrides:
initialize
in classCharColumnMapping
-
getJDBCType
public int getJDBCType()Description copied from class:AbstractColumnMapping
Method to return the java.sql.Types type that this relates to.- Overrides:
getJDBCType
in classCharColumnMapping
- Returns:
- The JDBC "type"
-
getInsertionInputParameter
Description copied from class:AbstractColumnMapping
Accessor 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:
getInsertionInputParameter
in interfaceColumnMapping
- Overrides:
getInsertionInputParameter
in classAbstractColumnMapping
- Returns:
- The input parameter
-
includeInFetchStatement
public boolean includeInFetchStatement()Description copied from class:AbstractColumnMapping
Whether this mapping is included in the fetch statement.- Overrides:
includeInFetchStatement
in classAbstractColumnMapping
- Returns:
- Whether to include in fetch statement
-
getUpdateInputParameter
Description copied from class:AbstractColumnMapping
Accessor 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:
getUpdateInputParameter
in interfaceColumnMapping
- Overrides:
getUpdateInputParameter
in classAbstractColumnMapping
- Returns:
- The input parameter.
-