org.datanucleus.store.rdbms.mapping
Class VarCharRDBMSMapping
java.lang.Object
org.datanucleus.store.rdbms.mapping.RDBMSMapping
org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
org.datanucleus.store.rdbms.mapping.VarCharRDBMSMapping
- All Implemented Interfaces:
- org.datanucleus.store.mapped.mapping.DatastoreMapping
public class VarCharRDBMSMapping
- extends CharRDBMSMapping
Mapping of a VARCHAR RDBMS type.
|
Constructor Summary |
|
VarCharRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
Constructor. |
protected |
VarCharRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor. |
|
Method Summary |
SQLTypeInfo |
getTypeInfo()
Accessor for datastore type info for this mapping. |
protected void |
initialize()
Method to initialise the column mapping. |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
equals, failureMessage, getByte, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setByte, setDouble, setFloat, setInt, setLong, setShort |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
VarCharRDBMSMapping
protected VarCharRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
- Constructor.
- Parameters:
storeMgr - Store Managermapping - Java type mapping
VarCharRDBMSMapping
public VarCharRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
- Constructor.
- Parameters:
mapping - Java type mappingstoreMgr - Store Managerfield - Field to be mapped
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:
initialize in class CharRDBMSMapping
getTypeInfo
public SQLTypeInfo getTypeInfo()
- Accessor for datastore type info for this mapping.
- Overrides:
getTypeInfo in class CharRDBMSMapping
- Returns:
- The datastore type
Copyright © 2009. All Rights Reserved.