org.datanucleus.store.rdbms.mapping
Class FloatRDBMSMapping

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

public class FloatRDBMSMapping
extends DoubleRDBMSMapping

Mapping of a Float RDBMS type.


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

Constructor Detail

FloatRDBMSMapping

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

FloatRDBMSMapping

public FloatRDBMSMapping(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
storeMgr - Store Manager
field - Field to be mapped
Method Detail

getTypeInfo

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

Overrides:
getTypeInfo in class DoubleRDBMSMapping
Returns:
The type info

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 DoubleRDBMSMapping

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 DoubleRDBMSMapping

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 DoubleRDBMSMapping

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 DoubleRDBMSMapping


Copyright © 2009. All Rights Reserved.