public class BigIntRDBMSMapping extends AbstractDatastoreMapping
column, mapping, storeMgr
Constructor and Description |
---|
BigIntRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getInt(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex . |
long |
getLong(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex . |
Object |
getObject(ResultSet rs,
int param)
Method to retrieve a Big int from a ResultSet.
|
String |
getString(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
SQLTypeInfo |
getTypeInfo()
Accessor for the (SQL) type info for this datastore type.
|
void |
setInt(PreparedStatement ps,
int param,
int value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setLong(PreparedStatement ps,
int param,
long value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setObject(PreparedStatement ps,
int param,
Object value)
Setter for a parameter in a PreparedStatement
|
void |
setString(PreparedStatement ps,
int exprIndex,
String value)
Sets a
value into ps
at position specified by paramIndex . |
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getJavaTypeMapping, getShort, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setShort
public BigIntRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- Columnpublic SQLTypeInfo getTypeInfo()
AbstractDatastoreMapping
getTypeInfo
in class AbstractDatastoreMapping
public void setInt(PreparedStatement ps, int param, int value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setInt
in interface DatastoreMapping
setInt
in class AbstractDatastoreMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic int getInt(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getInt
in interface DatastoreMapping
getInt
in class AbstractDatastoreMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setLong(PreparedStatement ps, int param, long value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setLong
in interface DatastoreMapping
setLong
in class AbstractDatastoreMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic long getLong(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getLong
in interface DatastoreMapping
getLong
in class AbstractDatastoreMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setString(PreparedStatement ps, int exprIndex, String value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setString
in interface DatastoreMapping
setString
in class AbstractDatastoreMapping
ps
- PreparedStatementexprIndex
- the position of the value in the statementvalue
- the valuepublic String getString(ResultSet resultSet, int exprIndex)
DatastoreMapping
resultSet
at position specified by exprIndex
.getString
in interface DatastoreMapping
getString
in class AbstractDatastoreMapping
resultSet
- ResultSetexprIndex
- the position of the value in the resultpublic void setObject(PreparedStatement ps, int param, Object value)
setObject
in interface DatastoreMapping
setObject
in class AbstractDatastoreMapping
ps
- The PreparedStatementparam
- The parameter number to setvalue
- The value to set it to.public Object getObject(ResultSet rs, int param)
getObject
in interface DatastoreMapping
getObject
in class AbstractDatastoreMapping
rs
- ResultSetparam
- The Parameter number in the result setCopyright © 2015. All rights reserved.