org.jpox.store.rdbms.mapping
Class ClobRDBMSMapping

java.lang.Object
  extended byorg.jpox.store.rdbms.mapping.RDBMSMapping
      extended byorg.jpox.store.rdbms.mapping.ColumnMapping
          extended byorg.jpox.store.rdbms.mapping.LongVarcharRDBMSMapping
              extended byorg.jpox.store.rdbms.mapping.ClobRDBMSMapping
All Implemented Interfaces:
DatastoreMapping
Direct Known Subclasses:
OracleClobRDBMSMapping

public class ClobRDBMSMapping
extends LongVarcharRDBMSMapping

Mapping of a Clob RDBMS type.

Version:
$Revision: 1.4 $

Field Summary
 
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
ClobRDBMSMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField field)
          Constructor.
ClobRDBMSMapping(StoreManager storeMgr, JavaTypeMapping mapping)
          Constructor.
 
Method Summary
 java.lang.Object getObject(java.lang.Object rs, int param)
          Obtains a value from resultSet at position specified by exprIndex.
 java.lang.String getString(java.lang.Object rs, int param)
          Obtains a value from resultSet at position specified by exprIndex.
 TypeInfo getTypeInfo()
          Accessor for the type info for this datastore field
 void setObject(java.lang.Object ps, int param, java.lang.Object value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setString(java.lang.Object ps, int param, java.lang.String value)
          Sets a value into preparedStatement at position specified by paramIndex.
 
Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping
equals, getColumn, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isNullable
 
Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping
failureMessage, getBoolean, getByte, getChar, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, 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(StoreManager storeMgr,
                        JavaTypeMapping mapping)
Constructor.

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

ClobRDBMSMapping

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

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

getTypeInfo

public TypeInfo 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)
Description copied from interface: DatastoreMapping
Sets a value into preparedStatement at position specified by paramIndex.

Specified by:
setString in interface DatastoreMapping
Overrides:
setString in class LongVarcharRDBMSMapping

setObject

public void setObject(java.lang.Object ps,
                      int param,
                      java.lang.Object value)
Description copied from interface: DatastoreMapping
Sets a value into preparedStatement at position specified by paramIndex.

Specified by:
setObject in interface DatastoreMapping
Overrides:
setObject in class LongVarcharRDBMSMapping

getString

public java.lang.String getString(java.lang.Object rs,
                                  int param)
Description copied from interface: DatastoreMapping
Obtains a value from resultSet at position specified by exprIndex.

Specified by:
getString in interface DatastoreMapping
Overrides:
getString in class LongVarcharRDBMSMapping

getObject

public java.lang.Object getObject(java.lang.Object rs,
                                  int param)
Description copied from interface: DatastoreMapping
Obtains a value from resultSet at position specified by exprIndex.

Specified by:
getObject in interface DatastoreMapping
Overrides:
getObject in class LongVarcharRDBMSMapping


Copyright © -2007 . All Rights Reserved.