org.jpox.store.rdbms.mapping
Class VarCharRDBMSMapping

java.lang.Object
  extended byorg.jpox.store.rdbms.mapping.RDBMSMapping
      extended byorg.jpox.store.rdbms.mapping.ColumnMapping
          extended byorg.jpox.store.rdbms.mapping.CharRDBMSMapping
              extended byorg.jpox.store.rdbms.mapping.VarCharRDBMSMapping
All Implemented Interfaces:
DatastoreMapping

public class VarCharRDBMSMapping
extends CharRDBMSMapping

Mapping of a VARCHAR RDBMS type.

Version:
$Revision: 1.5 $

Field Summary
 
Fields inherited from class org.jpox.store.rdbms.mapping.CharRDBMSMapping
CHAR_LENGTH, DATE_STRING_LENGTH, JAVA_UTIL_DATE_STRING_LENGTH, LOCALE_LENGTH, TIME_STRING_LENGTH, TIMESTAMP_STRING_LENGTH, TIMEZONE_LENGTH
 
Fields inherited from class org.jpox.store.rdbms.mapping.ColumnMapping
column
 
Fields inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping
LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  VarCharRDBMSMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField field)
          Constructor.
protected VarCharRDBMSMapping(StoreManager storeMgr, JavaTypeMapping mapping)
           
 
Method Summary
 TypeInfo getTypeInfo()
          Accessor for datastore type info for this mapping.
protected  void initialize()
          Method to initialise the column mapping.
 
Methods inherited from class org.jpox.store.rdbms.mapping.CharRDBMSMapping
getBoolean, getChar, getDatastoreField, getLocale, getObject, getString, getTimeZone, setBoolean, setChar, setLocale, setObject, setString, setTimeZone
 
Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping
equals, getColumn, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isNullable
 
Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping
failureMessage, getByte, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, 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(StoreManager storeMgr,
                              JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - Java type mapping

VarCharRDBMSMapping

public VarCharRDBMSMapping(JavaTypeMapping mapping,
                           StoreManager storeMgr,
                           DatastoreField field)
Constructor.

Parameters:
mapping - Java type mapping
storeMgr - Store Manager
field - Field to be mapped
Method Detail

initialize

protected void initialize()
Description copied from class: CharRDBMSMapping
Method to initialise the column mapping. Provides default length specifications for the CHAR column to fit the data being stored.

Overrides:
initialize in class CharRDBMSMapping

getTypeInfo

public TypeInfo getTypeInfo()
Accessor for datastore type info for this mapping.

Overrides:
getTypeInfo in class CharRDBMSMapping
Returns:
The datastore type


Copyright © -2007 . All Rights Reserved.