org.datanucleus.store.rdbms.mapping
Class DatalinkRDBMSMapping

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.DatalinkRDBMSMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.DatastoreMapping

public class DatalinkRDBMSMapping
extends CharRDBMSMapping

Mapping of a Datalink RDBMS type (used by DB2).


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  DatalinkRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected DatalinkRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 java.lang.String getInsertionInputParameter()
          Accessor for the string to put in any retrieval datastore statement for this field.
 SQLTypeInfo getTypeInfo()
          Accessor for the (SQL) type info for this datastore type.
 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.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, getInt, getJavaTypeMapping, getLong, getShort, hashCode, 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

DatalinkRDBMSMapping

protected DatalinkRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                               org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - Java type mapping

DatalinkRDBMSMapping

public DatalinkRDBMSMapping(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()
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 SQLTypeInfo getTypeInfo()
Description copied from class: RDBMSMapping
Accessor for the (SQL) type info for this datastore type.

Overrides:
getTypeInfo in class CharRDBMSMapping
Returns:
The type info

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 RDBMSMapping
Returns:
The input parameter

includeInFetchStatement

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

Overrides:
includeInFetchStatement in class RDBMSMapping
Returns:
Whether to include in fetch statement

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 RDBMSMapping
Returns:
The input parameter.


Copyright © 2009. All Rights Reserved.