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

DoubleType

public class DoubleType extends PrimitiveType
double: A type that maps an SQL DOUBLE to a Java Double.
author
Gavin King

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

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

		return new Double( rs.getDouble(name) );
	
public java.io.SerializablegetDefaultValue()

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

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

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

		return Double.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.setDouble( index, ( (Double) value ).doubleValue() );
	
public intsqlType()

		return Types.DOUBLE;