org.datanucleus.store.rdbms.mapping
Class DoubleRDBMSMapping

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

public class DoubleRDBMSMapping
extends RDBMSMapping

Mapping of a DOUBLE RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  DoubleRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected DoubleRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 double getDouble(java.lang.Object rs, int param)
           
 float getFloat(java.lang.Object rs, int param)
           
 int getInt(java.lang.Object rs, int param)
           
 long getLong(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.
 boolean isIntegerBased()
          Accessor for whether the mapping is integer-based.
 boolean isStringBased()
          Accessor for whether the mapping is string-based.
 void setDouble(java.lang.Object ps, int param, double value)
           
 void setFloat(java.lang.Object ps, int param, float value)
           
 void setInt(java.lang.Object ps, int param, int value)
           
 void setLong(java.lang.Object ps, int param, long 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, 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

DoubleRDBMSMapping

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

DoubleRDBMSMapping

public DoubleRDBMSMapping(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 being 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

setInt

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

getInt

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

setLong

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

getLong

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

setDouble

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

getDouble

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

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

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.