public class TimestampColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr
Constructor and Description |
---|
TimestampColumnMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col) |
Modifier and Type | Method and Description |
---|---|
int |
getJDBCType()
Method to return the java.sql.Types type that this relates to.
|
Object |
getObject(ResultSet rs,
int param)
Method to access an Object from the ResultSet.
|
protected Timestamp |
getTimestamp(ResultSet rs,
int param)
Method to access a Timestamp from the ResultSet.
|
void |
setObject(PreparedStatement ps,
int param,
Object value)
Method to set an object in a PreparedStatement for sending to the datastore.
|
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getString, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString, useDefaultWhenNull
public TimestampColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public int getJDBCType()
AbstractColumnMapping
getJDBCType
in class AbstractColumnMapping
public void setObject(PreparedStatement ps, int param, Object value)
setObject
in interface ColumnMapping
setObject
in class AbstractColumnMapping
ps
- The PreparedStatementparam
- The parameter position (in the statement)value
- The value to setprotected Timestamp getTimestamp(ResultSet rs, int param)
rs
- The ResultSetparam
- The parameter position in the ResultSet row.public Object getObject(ResultSet rs, int param)
getObject
in interface ColumnMapping
getObject
in class AbstractColumnMapping
rs
- The ResultSetparam
- The parameter position in the ResultSet row.Copyright © 2020. All rights reserved.