Class FloatColumnMapping
- java.lang.Object
-
- org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.DoubleColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.FloatColumnMapping
-
- All Implemented Interfaces:
ColumnMapping
public class FloatColumnMapping extends DoubleColumnMapping
Mapping of a Float column.
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
column, mapping, storeMgr
-
-
Constructor Summary
Constructors Constructor Description FloatColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getFloat(ResultSet rs, int param)
Obtains a value fromresultSet
at position specified byexprIndex
.int
getJDBCType()
Method to return the java.sql.Types type that this relates to.Object
getObject(ResultSet rs, int param)
Obtains a value fromresultSet
at position specified byexprIndex
.void
setFloat(PreparedStatement ps, int param, float value)
Sets avalue
intops
at position specified byparamIndex
.void
setObject(PreparedStatement ps, int param, Object value)
Sets avalue
intops
at position specified byparamIndex
.-
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.DoubleColumnMapping
getDouble, getInt, getLong, isDecimalBased, setDouble, setInt, setLong
-
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
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, useDefaultWhenNull
-
-
-
-
Constructor Detail
-
FloatColumnMapping
public FloatColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
Constructor.- Parameters:
mapping
- The java type mappingstoreMgr
- Store Managercol
- Column
-
-
Method Detail
-
getJDBCType
public int getJDBCType()
Description copied from class:AbstractColumnMapping
Method to return the java.sql.Types type that this relates to.- Overrides:
getJDBCType
in classDoubleColumnMapping
- Returns:
- The JDBC "type"
-
getFloat
public float getFloat(ResultSet rs, int param)
Description copied from interface:ColumnMapping
Obtains a value fromresultSet
at position specified byexprIndex
.- Specified by:
getFloat
in interfaceColumnMapping
- Overrides:
getFloat
in classDoubleColumnMapping
- Parameters:
rs
- ResultSetparam
- the position of the value in the result- Returns:
- the value
-
setFloat
public void setFloat(PreparedStatement ps, int param, float value)
Description copied from interface:ColumnMapping
Sets avalue
intops
at position specified byparamIndex
.- Specified by:
setFloat
in interfaceColumnMapping
- Overrides:
setFloat
in classDoubleColumnMapping
- Parameters:
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the value
-
setObject
public void setObject(PreparedStatement ps, int param, Object value)
Description copied from interface:ColumnMapping
Sets avalue
intops
at position specified byparamIndex
.- Specified by:
setObject
in interfaceColumnMapping
- Overrides:
setObject
in classDoubleColumnMapping
- Parameters:
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the value
-
getObject
public Object getObject(ResultSet rs, int param)
Description copied from interface:ColumnMapping
Obtains a value fromresultSet
at position specified byexprIndex
.- Specified by:
getObject
in interfaceColumnMapping
- Overrides:
getObject
in classDoubleColumnMapping
- Parameters:
rs
- ResultSetparam
- the position of the value in the result- Returns:
- the value
-
-