public class NumericRDBMSMapping extends AbstractDatastoreMapping
column, mapping, storeMgr| Constructor and Description |
|---|
NumericRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex. |
byte |
getByte(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex. |
char |
getChar(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex. |
double |
getDouble(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex. |
float |
getFloat(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. |
long |
getLong(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex. |
Object |
getObject(ResultSet rs,
int param)
Accessor for the value from a result set.
|
short |
getShort(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)
Sets a
value into ps
at position specified by paramIndex. |
void |
setByte(PreparedStatement ps,
int param,
byte value)
Sets a
value into ps
at position specified by paramIndex. |
void |
setChar(PreparedStatement ps,
int param,
char value)
Sets a
value into ps
at position specified by paramIndex. |
void |
setDouble(PreparedStatement ps,
int param,
double value)
Sets a
value into ps
at position specified by paramIndex. |
void |
setFloat(PreparedStatement ps,
int param,
float 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. |
void |
setShort(PreparedStatement ps,
int param,
short value)
Sets a
value into ps
at position specified by paramIndex. |
equals, failureMessage, failureMessage, failureMessage, getColumn, getDatastoreAdapter, getInsertionInputParameter, getJavaTypeMapping, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isNullable, isStringBased, setStringpublic NumericRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public boolean isIntegerBased()
isIntegerBased in interface DatastoreMappingisIntegerBased in class AbstractDatastoreMappingpublic SQLTypeInfo getTypeInfo()
AbstractDatastoreMappinggetTypeInfo in class AbstractDatastoreMappingpublic void setChar(PreparedStatement ps, int param, char value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setChar in interface DatastoreMappingsetChar in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic char getChar(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getChar in interface DatastoreMappinggetChar in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setInt(PreparedStatement ps, int param, int value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setInt in interface DatastoreMappingsetInt in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic int getInt(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getInt in interface DatastoreMappinggetInt in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setByte(PreparedStatement ps, int param, byte value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setByte in interface DatastoreMappingsetByte in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic byte getByte(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getByte in interface DatastoreMappinggetByte in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setBoolean(PreparedStatement ps, int param, boolean value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setBoolean in interface DatastoreMappingsetBoolean in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic boolean getBoolean(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getBoolean in interface DatastoreMappinggetBoolean in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setDouble(PreparedStatement ps, int param, double value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setDouble in interface DatastoreMappingsetDouble in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic double getDouble(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getDouble in interface DatastoreMappinggetDouble in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setFloat(PreparedStatement ps, int param, float value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setFloat in interface DatastoreMappingsetFloat in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic float getFloat(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getFloat in interface DatastoreMappinggetFloat in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setShort(PreparedStatement ps, int param, short value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setShort in interface DatastoreMappingsetShort in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic short getShort(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getShort in interface DatastoreMappinggetShort in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setLong(PreparedStatement ps, int param, long value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setLong in interface DatastoreMappingsetLong in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic long getLong(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getLong in interface DatastoreMappinggetLong in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setObject(PreparedStatement ps, int param, Object value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setObject in interface DatastoreMappingsetObject in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic Object getObject(ResultSet rs, int param)
getObject in interface DatastoreMappinggetObject in class AbstractDatastoreMappingrs - Result Setparam - Position in result setCopyright © 2015. All rights reserved.