|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.rdbms.mapping.RDBMSMapping
org.jpox.store.rdbms.mapping.ColumnMapping
org.jpox.store.rdbms.mapping.TimestampRDBMSMapping
Mapping of a TIMESTAMP RDBMS type.
Field Summary |
Fields inherited from class org.jpox.store.rdbms.mapping.ColumnMapping |
column |
Fields inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping |
LOCALISER, LOCALISER_STORE, mapping, storeMgr |
Constructor Summary | |
|
TimestampRDBMSMapping(JavaTypeMapping mapping,
StoreManager storeMgr,
DatastoreField field)
Constructor. |
protected |
TimestampRDBMSMapping(StoreManager storeMgr,
JavaTypeMapping mapping)
Constructor |
Method Summary | |
DatastoreField |
getDatastoreField()
Accessor for the datastore field being used by this mapping. |
java.lang.Object |
getObject(java.lang.Object rs,
int param)
Method to access an Object from the ResultSet. |
protected java.sql.Timestamp |
getTimestamp(java.lang.Object rs,
int param)
Method to access a Timestamp from the ResultSet. |
TypeInfo |
getTypeInfo()
Accessor for the type info for this column. |
void |
setObject(java.lang.Object ps,
int param,
java.lang.Object value)
Method to set an object in a PreparedStatement for sending to the datastore. |
Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping |
equals, getColumn, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isNullable |
Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping |
failureMessage, getBoolean, getByte, getChar, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getString, 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 |
protected TimestampRDBMSMapping(StoreManager storeMgr, JavaTypeMapping mapping)
storeMgr
- Store Managermapping
- Java type mappingpublic TimestampRDBMSMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField field)
mapping
- Java type mappingstoreMgr
- Store Managerfield
- Field to be mappedMethod Detail |
public TypeInfo getTypeInfo()
getTypeInfo
in class ColumnMapping
public DatastoreField getDatastoreField()
getDatastoreField
in interface DatastoreMapping
getDatastoreField
in class ColumnMapping
public void setObject(java.lang.Object ps, int param, java.lang.Object value)
setObject
in interface DatastoreMapping
setObject
in class RDBMSMapping
ps
- The PreparedStatementparam
- The parameter position (in the statement)value
- The value to setprotected java.sql.Timestamp getTimestamp(java.lang.Object rs, int param)
rs
- The ResultSetparam
- The parameter position in the ResultSet row.
public java.lang.Object getObject(java.lang.Object rs, int param)
getObject
in interface DatastoreMapping
getObject
in class RDBMSMapping
rs
- The ResultSetparam
- The parameter position in the ResultSet row.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |