FileDocCategorySizeDatePackage
BigDecimalType.javaAPI DocHibernate 3.2.51412Wed Feb 16 05:50:20 GMT 2005org.hibernate.type

BigDecimalType

public class BigDecimalType extends ImmutableType
big_decimal: A type that maps an SQL NUMERIC to a java.math.BigDecimal
see
java.math.BigDecimal
author
Gavin King

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

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

		return rs.getBigDecimal(name);
	
public intgetHashCode(java.lang.Object x, org.hibernate.EntityMode entityMode)

		return ( (BigDecimal) x ).intValue();
	
public java.lang.StringgetName()

		return "big_decimal";
	
public java.lang.ClassgetReturnedClass()

		return BigDecimal.class;
	
public booleanisEqual(java.lang.Object x, java.lang.Object y)

		return x==y || ( x!=null && y!=null && ( (BigDecimal) x ).compareTo( (BigDecimal) y )==0 );
	
public voidset(java.sql.PreparedStatement st, java.lang.Object value, int index)

		st.setBigDecimal(index, (BigDecimal) value);
	
public intsqlType()

		return Types.NUMERIC;
	
public java.lang.StringtoString(java.lang.Object value)

		return value.toString();