org.datanucleus.store.rdbms.mapping
Class ClobRDBMSMapping

java.lang.Object
  extended by org.datanucleus.store.rdbms.mapping.RDBMSMapping
      extended by org.datanucleus.store.rdbms.mapping.LongVarcharRDBMSMapping
          extended by org.datanucleus.store.rdbms.mapping.ClobRDBMSMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.DatastoreMapping
Direct Known Subclasses:
OracleClobRDBMSMapping

public class ClobRDBMSMapping
extends LongVarcharRDBMSMapping

Mapping of a Clob RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
ClobRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
ClobRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
          Constructor.
 
Method Summary
 java.lang.Object getObject(java.lang.Object rs, int param)
           
 java.lang.String getString(java.lang.Object rs, int param)
           
 SQLTypeInfo getTypeInfo()
          Accessor for the type info for this datastore field
 void setObject(java.lang.Object ps, int param, java.lang.Object value)
           
 void setString(java.lang.Object ps, int param, java.lang.String value)
           
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.LongVarcharRDBMSMapping
isDecimalBased, isIntegerBased, isStringBased
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
equals, failureMessage, getBoolean, getByte, getChar, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isNullable, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClobRDBMSMapping

public ClobRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                        org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor.

Parameters:
storeMgr - Manager for the store
mapping - The java type mapping for the field

ClobRDBMSMapping

public ClobRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
                        org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                        org.datanucleus.store.mapped.DatastoreField field)
Constructor.

Parameters:
mapping - The java type mapping for the field.
storeMgr - Manager for the store
field - The field
Method Detail

getTypeInfo

public SQLTypeInfo getTypeInfo()
Accessor for the type info for this datastore field

Overrides:
getTypeInfo in class LongVarcharRDBMSMapping
Returns:
Type info for the datastore field

setString

public void setString(java.lang.Object ps,
                      int param,
                      java.lang.String value)
Specified by:
setString in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
setString in class LongVarcharRDBMSMapping

setObject

public void setObject(java.lang.Object ps,
                      int param,
                      java.lang.Object value)
Specified by:
setObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
setObject in class LongVarcharRDBMSMapping

getString

public java.lang.String getString(java.lang.Object rs,
                                  int param)
Specified by:
getString in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
getString in class LongVarcharRDBMSMapping

getObject

public java.lang.Object getObject(java.lang.Object rs,
                                  int param)
Specified by:
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
getObject in class LongVarcharRDBMSMapping


Copyright © 2009. All Rights Reserved.