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
public class DB2DatalinkColumnMapping extends CharColumnMapping
Mapping of a DB2 "Datalink" column.
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
column, mapping, storeMgr
-
-
Constructor Summary
Constructors Constructor Description DB2DatalinkColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInsertionInputParameter()
Accessor for the string to put in any retrieval datastore statement for this field.int
getJDBCType()
Method to return the java.sql.Types type that this relates to.String
getUpdateInputParameter()
Accessor for the string to put in any update datastore statements for this field.boolean
includeInFetchStatement()
Whether this mapping is included in the fetch statement.protected void
initialize()
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 Detail
-
DB2DatalinkColumnMapping
public DB2DatalinkColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
Constructor.- Parameters:
mapping
- Java type mappingstoreMgr
- Store Managercol
- Column
-
-
Method Detail
-
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
public String 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
public String 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.
-
-