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 floatgetFloat(ResultSet rs, int param)Obtains a value fromresultSetat position specified byexprIndex.intgetJDBCType()Method to return the java.sql.Types type that this relates to.ObjectgetObject(ResultSet rs, int param)Obtains a value fromresultSetat position specified byexprIndex.voidsetFloat(PreparedStatement ps, int param, float value)Sets avalueintopsat position specified byparamIndex.voidsetObject(PreparedStatement ps, int param, Object value)Sets avalueintopsat 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:AbstractColumnMappingMethod to return the java.sql.Types type that this relates to.- Overrides:
getJDBCTypein classDoubleColumnMapping- Returns:
- The JDBC "type"
-
getFloat
public float getFloat(ResultSet rs, int param)
Description copied from interface:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getFloatin interfaceColumnMapping- Overrides:
getFloatin 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:ColumnMappingSets avalueintopsat position specified byparamIndex.- Specified by:
setFloatin interfaceColumnMapping- Overrides:
setFloatin 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:ColumnMappingSets avalueintopsat position specified byparamIndex.- Specified by:
setObjectin interfaceColumnMapping- Overrides:
setObjectin 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:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getObjectin interfaceColumnMapping- Overrides:
getObjectin classDoubleColumnMapping- Parameters:
rs- ResultSetparam- the position of the value in the result- Returns:
- the value
-
-