Class VarCharColumnMapping
java.lang.Object
org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
org.datanucleus.store.rdbms.mapping.column.CharColumnMapping
org.datanucleus.store.rdbms.mapping.column.VarCharColumnMapping
- All Implemented Interfaces:
ColumnMapping
Mapping of a VARCHAR 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
ConstructorsConstructorDescriptionVarCharColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintMethod to return the java.sql.Types type that this relates to.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, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setByte, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNull
-
Constructor Details
-
VarCharColumnMapping
Constructor.- Parameters:
mapping- Java type mappingstoreMgr- Store Managercol- Column
-
-
Method Details
-
initialize
protected void initialize()Method to initialise the column mapping. Provides default length specifications for the VARCHAR 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"
-