org.hibernate.type

Class FloatType

Implemented Interfaces:
LiteralType, Serializable, Type

public class FloatType
extends PrimitiveType

float: A type that maps an SQL FLOAT to a Java Float.
Author:
Gavin King

Method Summary

Object
fromStringValue(String xml)
Object
get(ResultSet rs, String name)
Serializable
getDefaultValue()
String
getName()
Class
getPrimitiveClass()
Class
getReturnedClass()
String
objectToSQLString(Object value, Dialect dialect)
void
set(PreparedStatement st, Object value, int index)
int
sqlType()

Methods inherited from class org.hibernate.type.PrimitiveType

getDefaultValue, getPrimitiveClass, toString

Methods inherited from class org.hibernate.type.ImmutableType

deepCopy, isMutable, replace

Methods inherited from class org.hibernate.type.NullableType

fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString

Methods inherited from class org.hibernate.type.AbstractType

assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve

Method Details

fromStringValue

public Object fromStringValue(String xml)
Overrides:
fromStringValue in interface NullableType

get

public Object get(ResultSet rs,
                  String name)
            throws SQLException
Overrides:
get in interface NullableType

getDefaultValue

public Serializable getDefaultValue()
Overrides:
getDefaultValue in interface PrimitiveType

getName

public String getName()
Specified by:
getName in interface Type

getPrimitiveClass

public Class getPrimitiveClass()
Overrides:
getPrimitiveClass in interface PrimitiveType

getReturnedClass

public Class getReturnedClass()
Specified by:
getReturnedClass in interface Type

objectToSQLString

public String objectToSQLString(Object value,
                                Dialect dialect)
            throws Exception
Specified by:
objectToSQLString in interface LiteralType

set

public void set(PreparedStatement st,
                Object value,
                int index)
            throws SQLException
Overrides:
set in interface NullableType

sqlType

public int sqlType()
Overrides:
sqlType in interface NullableType