public class BigIntColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr
Constructor and Description |
---|
BigIntColumnMapping(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 . |
int |
getJDBCType()
Method to return the java.sql.Types type that this relates to.
|
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 . |
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, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setShort, useDefaultWhenNull
public BigIntColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- Columnpublic int getJDBCType()
AbstractColumnMapping
getJDBCType
in class AbstractColumnMapping
public void setInt(PreparedStatement ps, int param, int value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setInt
in interface ColumnMapping
setInt
in class AbstractColumnMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic int getInt(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getInt
in interface ColumnMapping
getInt
in class AbstractColumnMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setLong(PreparedStatement ps, int param, long value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setLong
in interface ColumnMapping
setLong
in class AbstractColumnMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic long getLong(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getLong
in interface ColumnMapping
getLong
in class AbstractColumnMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setString(PreparedStatement ps, int exprIndex, String value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setString
in interface ColumnMapping
setString
in class AbstractColumnMapping
ps
- PreparedStatementexprIndex
- the position of the value in the statementvalue
- the valuepublic String getString(ResultSet resultSet, int exprIndex)
ColumnMapping
resultSet
at position specified by exprIndex
.getString
in interface ColumnMapping
getString
in class AbstractColumnMapping
resultSet
- ResultSetexprIndex
- the position of the value in the resultpublic void setObject(PreparedStatement ps, int param, Object value)
setObject
in interface ColumnMapping
setObject
in class AbstractColumnMapping
ps
- The PreparedStatementparam
- The parameter number to setvalue
- The value to set it to.public Object getObject(ResultSet rs, int param)
getObject
in interface ColumnMapping
getObject
in class AbstractColumnMapping
rs
- ResultSetparam
- The Parameter number in the result setCopyright © 2020. All rights reserved.