public class TinyIntColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr| Constructor and Description |
|---|
TinyIntColumnMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(ResultSet rs,
int param)
Getter for when we are storing a boolean field as a TINYINT.
|
byte |
getByte(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. |
SQLTypeInfo |
getTypeInfo()
Accessor for the (SQL) type info for this datastore type.
|
boolean |
isIntegerBased()
Accessor for whether the mapping is integer-based.
|
void |
setBoolean(PreparedStatement ps,
int param,
boolean value)
Setter for when we are storing a boolean field as a TINYINT.
|
void |
setByte(PreparedStatement ps,
int param,
byte 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, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getJavaTypeMapping, getShort, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isNullable, isStringBased, setChar, setDouble, setFloat, setShort, setString, useDefaultWhenNullpublic TinyIntColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public boolean isIntegerBased()
isIntegerBased in interface ColumnMappingisIntegerBased in class AbstractColumnMappingpublic int getJDBCType()
AbstractColumnMappinggetJDBCType in class AbstractColumnMappingpublic SQLTypeInfo getTypeInfo()
AbstractColumnMappinggetTypeInfo in class AbstractColumnMappingpublic void setBoolean(PreparedStatement ps, int param, boolean value)
setBoolean in interface ColumnMappingsetBoolean in class AbstractColumnMappingps - Prepared Statementparam - Number of the parameter in the statementvalue - The boolean valuepublic boolean getBoolean(ResultSet rs, int param)
getBoolean in interface ColumnMappinggetBoolean in class AbstractColumnMappingrs - Result Set from which to get the booleanparam - Number of the parameter in the statementpublic void setInt(PreparedStatement ps, int param, int value)
ColumnMappingvalue into ps
at position specified by paramIndex.setInt in interface ColumnMappingsetInt in class AbstractColumnMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic int getInt(ResultSet rs, int param)
ColumnMappingresultSet
at position specified by exprIndex.getInt in interface ColumnMappinggetInt in class AbstractColumnMappingrs - ResultSetparam - the position of the value in the resultpublic void setLong(PreparedStatement ps, int param, long value)
ColumnMappingvalue into ps
at position specified by paramIndex.setLong in interface ColumnMappingsetLong in class AbstractColumnMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic long getLong(ResultSet rs, int param)
ColumnMappingresultSet
at position specified by exprIndex.getLong in interface ColumnMappinggetLong in class AbstractColumnMappingrs - ResultSetparam - the position of the value in the resultpublic void setByte(PreparedStatement ps, int param, byte value)
ColumnMappingvalue into ps
at position specified by paramIndex.setByte in interface ColumnMappingsetByte in class AbstractColumnMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic byte getByte(ResultSet rs, int param)
ColumnMappingresultSet
at position specified by exprIndex.getByte in interface ColumnMappinggetByte in class AbstractColumnMappingrs - ResultSetparam - the position of the value in the resultpublic void setObject(PreparedStatement ps, int param, Object value)
ColumnMappingvalue into ps
at position specified by paramIndex.setObject in interface ColumnMappingsetObject in class AbstractColumnMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic Object getObject(ResultSet rs, int param)
ColumnMappingresultSet
at position specified by exprIndex.getObject in interface ColumnMappinggetObject in class AbstractColumnMappingrs - ResultSetparam - the position of the value in the resultCopyright © 2020. All rights reserved.