org.jpox.store.rdbms.mapping
Class DatalinkRDBMSMapping

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.DatalinkRDBMSMapping
All Implemented Interfaces:
DatastoreMapping

public class DatalinkRDBMSMapping
extends CharRDBMSMapping

FCO Mapping for an DB2 String type.

Version:
$Revision: 1.7 $

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
  DatalinkRDBMSMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField field)
          Constructor.
protected DatalinkRDBMSMapping(StoreManager storeMgr, JavaTypeMapping mapping)
           
 
Method Summary
 java.lang.String getInsertionInputParameter()
          Accessor for the string to put in any retrieval datastore statement for this field.
 TypeInfo getTypeInfo()
          Accessor for the JDBC type being stored here.
 java.lang.String getUpdateInputParameter()
          Accessor for the string to put in any update datastore statements for this field.
 boolean includeInFetchStatement()
          Whether this mapping is included in the fetch statement.
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, hashCode, 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

DatalinkRDBMSMapping

protected DatalinkRDBMSMapping(StoreManager storeMgr,
                               JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - Java type mapping

DatalinkRDBMSMapping

public DatalinkRDBMSMapping(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()
Description copied from class: CharRDBMSMapping
Accessor for the JDBC type being stored here.

Overrides:
getTypeInfo in class CharRDBMSMapping
Returns:
JDBC Types.CHAR

getInsertionInputParameter

public java.lang.String getInsertionInputParameter()
Description copied from class: RDBMSMapping
Accessor 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.

Overrides:
getInsertionInputParameter in class ColumnMapping

includeInFetchStatement

public boolean includeInFetchStatement()
Description copied from class: RDBMSMapping
Whether this mapping is included in the fetch statement.

Overrides:
includeInFetchStatement in class ColumnMapping

getUpdateInputParameter

public java.lang.String getUpdateInputParameter()
Description copied from class: RDBMSMapping
Accessor 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.

Overrides:
getUpdateInputParameter in class ColumnMapping


Copyright © -2007 . All Rights Reserved.