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
Mapping of a Float column.
-
Field Summary
Fields inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
column, mapping, storeMgr
-
Constructor Summary
ConstructorsConstructorDescriptionFloatColumnMapping
(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Obtains a value fromresultSet
at position specified byexprIndex
.int
Method to return the java.sql.Types type that this relates to.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 Details
-
FloatColumnMapping
Constructor.- Parameters:
mapping
- The java type mappingstoreMgr
- Store Managercol
- Column
-
-
Method Details
-
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
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
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
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
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
-