public class FloatRDBMSMapping extends DoubleRDBMSMapping
column, mapping, storeMgr
Constructor and Description |
---|
FloatRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getFloat(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.
|
void |
setFloat(PreparedStatement ps,
int param,
float 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 . |
getDouble, getInt, getLong, isDecimalBased, setDouble, setInt, setLong
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getInsertionInputParameter, getJavaTypeMapping, getShort, getString, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setShort, setString
public FloatRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- The java type mappingstoreMgr
- Store Managercol
- Columnpublic SQLTypeInfo getTypeInfo()
AbstractDatastoreMapping
getTypeInfo
in class DoubleRDBMSMapping
public float getFloat(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getFloat
in interface DatastoreMapping
getFloat
in class DoubleRDBMSMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setFloat(PreparedStatement ps, int param, float value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setFloat
in interface DatastoreMapping
setFloat
in class DoubleRDBMSMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic void setObject(PreparedStatement ps, int param, Object value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setObject
in interface DatastoreMapping
setObject
in class DoubleRDBMSMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic Object getObject(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getObject
in interface DatastoreMapping
getObject
in class DoubleRDBMSMapping
rs
- ResultSetparam
- the position of the value in the resultCopyright © 2015. All rights reserved.