FileDocCategorySizeDatePackage
FloatType.javaAPI DocHibernate 3.2.51165Wed Aug 10 15:23:56 BST 2005org.hibernate.type

FloatType

public class FloatType extends PrimitiveType
float: A type that maps an SQL FLOAT to a Java Float.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectfromStringValue(java.lang.String xml)

		return new Float(xml);
	
public java.lang.Objectget(java.sql.ResultSet rs, java.lang.String name)

		return new Float( rs.getFloat(name) );
	
public java.io.SerializablegetDefaultValue()

		return new Float(0.0);
	
public java.lang.StringgetName()

 return "float"; 
public java.lang.ClassgetPrimitiveClass()

		return float.class;
	
public java.lang.ClassgetReturnedClass()

		return Float.class;
	
public java.lang.StringobjectToSQLString(java.lang.Object value, org.hibernate.dialect.Dialect dialect)

		return value.toString();
	
public voidset(java.sql.PreparedStatement st, java.lang.Object value, int index)


		st.setFloat( index, ( (Float) value ).floatValue() );
	
public intsqlType()

		return Types.FLOAT;