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 AbstractColumnMapping
column, mapping, storeMgr -
Constructor Summary
ConstructorsConstructorDescriptionFloatColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfloatObtains a value fromresultSetat position specified byexprIndex.intMethod to return the java.sql.Types type that this relates to.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 DoubleColumnMapping
getDouble, getInt, getLong, isDecimalBased, setDouble, setInt, setLongMethods inherited from class 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:AbstractColumnMappingMethod to return the java.sql.Types type that this relates to.- Overrides:
getJDBCTypein classDoubleColumnMapping- Returns:
- The JDBC "type"
-
getFloat
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
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
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
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
-