public class DoubleRDBMSMapping extends AbstractDatastoreMapping
column, mapping, storeMgr| Constructor and Description |
|---|
DoubleRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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 |
isDecimalBased()
Accessor for whether the mapping is decimal-based.
|
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. |
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getInsertionInputParameter, getJavaTypeMapping, getShort, getString, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setShort, setString, useDefaultWhenNullpublic DoubleRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping - The java type mappingstoreMgr - Store Managercol - Columnpublic boolean isDecimalBased()
isDecimalBased in interface DatastoreMappingisDecimalBased in class AbstractDatastoreMappingpublic int getJDBCType()
AbstractDatastoreMappinggetJDBCType in class AbstractDatastoreMappingpublic 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 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 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 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 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 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)
DatastoreMappingresultSet
at position specified by exprIndex.getObject in interface DatastoreMappinggetObject in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultCopyright © 2019. All rights reserved.