org.datanucleus.store.rdbms.mapping
Class LongVarcharRDBMSMapping

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

public class LongVarcharRDBMSMapping
extends RDBMSMapping

Mapping of a Long VARCHAR RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  LongVarcharRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected LongVarcharRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
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 (SQL) type info for this datastore type.
 boolean isDecimalBased()
          Accessor for whether the mapping is decimal-based.
 boolean isIntegerBased()
          Accessor for whether the mapping is integer-based.
 boolean isStringBased()
          Accessor for whether the mapping is string-based.
 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.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

LongVarcharRDBMSMapping

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

LongVarcharRDBMSMapping

public LongVarcharRDBMSMapping(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

isDecimalBased

public boolean isDecimalBased()
Accessor for whether the mapping is decimal-based.

Specified by:
isDecimalBased in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
isDecimalBased in class RDBMSMapping
Returns:
Whether the mapping is decimal based

isIntegerBased

public boolean isIntegerBased()
Accessor for whether the mapping is integer-based.

Specified by:
isIntegerBased in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
isIntegerBased in class RDBMSMapping
Returns:
Whether the mapping is integer based

isStringBased

public boolean isStringBased()
Accessor for whether the mapping is string-based.

Specified by:
isStringBased in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
isStringBased in class RDBMSMapping
Returns:
Whether the mapping is string based

getTypeInfo

public SQLTypeInfo getTypeInfo()
Description copied from class: RDBMSMapping
Accessor for the (SQL) type info for this datastore type.

Specified by:
getTypeInfo in class RDBMSMapping
Returns:
The type info

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 RDBMSMapping

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 RDBMSMapping

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 RDBMSMapping

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 RDBMSMapping


Copyright © 2009. All Rights Reserved.