org.datanucleus.store.rdbms.mapping
Class VarCharRDBMSMapping

java.lang.Object
  extended by org.datanucleus.store.rdbms.mapping.RDBMSMapping
      extended by org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
          extended by 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.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
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.CharRDBMSMapping
getBoolean, getChar, getJavaUtilDateFormat, getObject, getString, isStringBased, setBoolean, setChar, setObject, setString
 
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
 

Constructor Detail

VarCharRDBMSMapping

protected VarCharRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                              org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor.

Parameters:
storeMgr - Store Manager
mapping - 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 mapping
storeMgr - Store Manager
field - Field to be mapped
Method Detail

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.