public class IntegerColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr
Constructor and Description |
---|
IntegerColumnMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
char |
getChar(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex . |
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)
Obtains a value from
resultSet
at position specified by exprIndex . |
boolean |
isIntegerBased()
Accessor for whether the mapping is integer-based.
|
void |
setChar(PreparedStatement ps,
int param,
char value)
Sets a
value into ps
at position specified by paramIndex . |
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)
Sets a
value into ps
at position specified by paramIndex . |
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getJavaTypeMapping, getShort, getString, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isNullable, isStringBased, setBoolean, setByte, setDouble, setFloat, setShort, setString, useDefaultWhenNull
public IntegerColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- Columnpublic boolean isIntegerBased()
isIntegerBased
in interface ColumnMapping
isIntegerBased
in class AbstractColumnMapping
public int getJDBCType()
AbstractColumnMapping
getJDBCType
in class AbstractColumnMapping
public void setChar(PreparedStatement ps, int param, char value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setChar
in interface ColumnMapping
setChar
in class AbstractColumnMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic char getChar(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getChar
in interface ColumnMapping
getChar
in class AbstractColumnMapping
rs
- ResultSetparam
- the position of the value in the resultpublic 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 setObject(PreparedStatement ps, int param, Object value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setObject
in interface ColumnMapping
setObject
in class AbstractColumnMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic Object getObject(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getObject
in interface ColumnMapping
getObject
in class AbstractColumnMapping
rs
- ResultSetparam
- the position of the value in the resultCopyright © 2020. All rights reserved.