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.
-
-
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
Constructors Constructor Description DB2DatalinkColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInsertionInputParameter()Accessor for the string to put in any retrieval datastore statement for this field.intgetJDBCType()Method to return the java.sql.Types type that this relates to.java.lang.StringgetUpdateInputParameter()Accessor for the string to put in any update datastore statements for this field.booleanincludeInFetchStatement()Whether this mapping is included in the fetch statement.protected voidinitialize()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: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
public java.lang.String 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
public java.lang.String 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.
-
-