org.datanucleus.store.rdbms.mapping
Class BigIntRDBMSMapping

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

public class BigIntRDBMSMapping
extends RDBMSMapping

Mapping of a Big Integer RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  BigIntRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected BigIntRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 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)
          Method to retrieve a Big int from a ResultSet.
 SQLTypeInfo getTypeInfo()
          Accessor for the (SQL) type info for this datastore type.
 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)
          Setter for a parameter in a PreparedStatement
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
equals, failureMessage, getBoolean, getByte, getChar, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getFloat, getInsertionInputParameter, getJavaTypeMapping, getShort, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setShort, setString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigIntRDBMSMapping

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

BigIntRDBMSMapping

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

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

setObject

public void setObject(java.lang.Object ps,
                      int param,
                      java.lang.Object value)
Setter for a parameter in a PreparedStatement

Specified by:
setObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
setObject in class RDBMSMapping
Parameters:
ps - The PreparedStatement
param - The parameter number to set
value - The value to set it to.

getObject

public java.lang.Object getObject(java.lang.Object rs,
                                  int param)
Method to retrieve a Big int from a ResultSet.

Specified by:
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
getObject in class RDBMSMapping
Parameters:
rs - ResultSet
param - The Parameter number in the result set
Returns:
The BIGINT object


Copyright © 2009. All Rights Reserved.