org.datanucleus.store.rdbms.mapping
Class DateRDBMSMapping

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

public class DateRDBMSMapping
extends RDBMSMapping

Mapping of a DATE RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  DateRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected DateRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
protected  java.sql.Date getDate(java.lang.Object rs, int param)
           
 java.lang.Object getObject(java.lang.Object rs, int param)
          Accessor for the object.
 SQLTypeInfo getTypeInfo()
          Accessor for the (SQL) type info for this datastore type.
 void setObject(java.lang.Object ps, int param, java.lang.Object value)
          Mutator for the object.
 
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, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateRDBMSMapping

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

DateRDBMSMapping

public DateRDBMSMapping(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 - The 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

setObject

public void setObject(java.lang.Object ps,
                      int param,
                      java.lang.Object value)
Mutator for the object.

Specified by:
setObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
setObject in class RDBMSMapping
Parameters:
ps - The JDBC Statement
param - The Parameter position
value - The value to set

getDate

protected java.sql.Date getDate(java.lang.Object rs,
                                int param)

getObject

public java.lang.Object getObject(java.lang.Object rs,
                                  int param)
Accessor for the object.

Specified by:
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
getObject in class RDBMSMapping
Parameters:
rs - The ResultSet to extract the value from
param - The parameter position
Returns:
The object value


Copyright © 2009. All Rights Reserved.