org.datanucleus.store.rdbms.mapping
Class RealRDBMSMapping

java.lang.Object
  extended by org.datanucleus.store.rdbms.mapping.RDBMSMapping
      extended by org.datanucleus.store.rdbms.mapping.RealRDBMSMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.DatastoreMapping

public class RealRDBMSMapping
extends RDBMSMapping

Mapping of a REAL RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  RealRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected RealRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 float getFloat(java.lang.Object rs, int param)
           
 java.lang.Object getObject(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.
 void setFloat(java.lang.Object ps, int param, float value)
           
 void setObject(java.lang.Object ps, int param, java.lang.Object value)
           
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
equals, failureMessage, getBoolean, getByte, getChar, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setInt, setLong, setShort, setString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealRDBMSMapping

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

RealRDBMSMapping

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

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

setFloat

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

getFloat

public float getFloat(java.lang.Object rs,
                      int param)
Specified by:
getFloat in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
getFloat 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.