org.datanucleus.store.rdbms.mapping
Class TimeRDBMSMapping

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

public class TimeRDBMSMapping
extends RDBMSMapping

Mapping of a TIME RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER_RDBMS, storeMgr
 
Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
LOCALISER, mapping
 
Constructor Summary
  TimeRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected TimeRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 Object getObject(Object rs, int param)
          Accessor for the object.
protected  Time getTime(Object rs, int param)
           
 SQLTypeInfo getTypeInfo()
          Accessor for the (SQL) type info for this datastore type.
 void setObject(Object ps, int param, Object value)
          Mutator for the object.
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
equals, failureMessage, failureMessage, getDatabaseAdapter, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isNullable
 
Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
failureMessage, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getString, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, 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

TimeRDBMSMapping

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

TimeRDBMSMapping

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

setObject

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

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

getTime

protected Time getTime(Object rs,
                       int param)

getObject

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

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


Copyright © 2012. All Rights Reserved.