org.datanucleus.store.rdbms.mapping
Class TimeRDBMSMapping

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

public class TimeRDBMSMapping
extends ColumnMapping

Mapping of a TIME RDBMS type.

Version:
$Revision: 1.11 $

Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.ColumnMapping
column
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  TimeRDBMSMapping(JavaTypeMapping mapping, MappedStoreManager storeMgr, DatastoreField field)
          Constructor.
protected TimeRDBMSMapping(MappedStoreManager storeMgr, JavaTypeMapping mapping)
           
 
Method Summary
 java.lang.Object getObject(java.lang.Object rs, int param)
          Accessor for the object.
protected  java.sql.Time getTime(java.lang.Object rs, int param)
           
 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.ColumnMapping
equals, getColumn, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
failureMessage, getBoolean, getByte, getChar, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getString, insertValuesOnInsert, 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(MappedStoreManager storeMgr,
                           JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - Java type mapping

TimeRDBMSMapping

public TimeRDBMSMapping(JavaTypeMapping mapping,
                        MappedStoreManager storeMgr,
                        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(java.lang.Object ps,
                      int param,
                      java.lang.Object value)
Mutator for the object.

Specified by:
setObject in interface DatastoreMapping
Overrides:
setObject in class RDBMSMapping
Parameters:
ps - The JDBC Statement
param - The Parameter position
value - The value to set

getTime

protected java.sql.Time getTime(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 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.