org.kuali.rice.core.framework.persistence.jpa.type
Class HibernateKualiDecimalFieldType

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.jpa.type.HibernateImmutableValueUserType
      extended by org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalFieldType
All Implemented Interfaces:
org.hibernate.usertype.UserType
Direct Known Subclasses:
HibernateKualiDecimalPercentageFieldType, HibernateKualiDecimalPercentFieldType

public class HibernateKualiDecimalFieldType
extends HibernateImmutableValueUserType

This is a description of what this class does - g1zhang don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
HibernateKualiDecimalFieldType()
           
 
Method Summary
 Object getConverted(Object value)
           
 Object getConvertedToBigDecimal(Object value)
           
 Object getConvertedToKualiDecimal(Object value)
           
 Object nullSafeGet(ResultSet rs, String[] names, Object source)
          This overridden method ...
 void nullSafeSet(PreparedStatement st, Object source, int index)
          This overridden method ...
 Class returnedClass()
          Returns String.class
 int[] sqlTypes()
          Returns an array with the SQL VARCHAR type as the single member
 
Methods inherited from class org.kuali.rice.core.framework.persistence.jpa.type.HibernateImmutableValueUserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateKualiDecimalFieldType

public HibernateKualiDecimalFieldType()
Method Detail

nullSafeGet

public Object nullSafeGet(ResultSet rs,
                          String[] names,
                          Object source)
                   throws org.hibernate.HibernateException,
                          SQLException
This overridden method ...

Specified by:
nullSafeGet in interface org.hibernate.usertype.UserType
Specified by:
nullSafeGet in class HibernateImmutableValueUserType
Throws:
org.hibernate.HibernateException
SQLException
See Also:
HibernateImmutableValueUserType.nullSafeGet(java.sql.ResultSet, java.lang.String[], java.lang.Object)

nullSafeSet

public void nullSafeSet(PreparedStatement st,
                        Object source,
                        int index)
                 throws org.hibernate.HibernateException,
                        SQLException
This overridden method ...

Specified by:
nullSafeSet in interface org.hibernate.usertype.UserType
Specified by:
nullSafeSet in class HibernateImmutableValueUserType
Throws:
org.hibernate.HibernateException
SQLException
See Also:
HibernateImmutableValueUserType.nullSafeSet(java.sql.PreparedStatement, java.lang.Object, int)

getConverted

public Object getConverted(Object value)

returnedClass

public Class returnedClass()
Returns String.class

Specified by:
returnedClass in interface org.hibernate.usertype.UserType
Specified by:
returnedClass in class HibernateImmutableValueUserType
See Also:
UserType.returnedClass()

sqlTypes

public int[] sqlTypes()
Returns an array with the SQL VARCHAR type as the single member

Specified by:
sqlTypes in interface org.hibernate.usertype.UserType
Specified by:
sqlTypes in class HibernateImmutableValueUserType
See Also:
UserType.sqlTypes()

getConvertedToKualiDecimal

public Object getConvertedToKualiDecimal(Object value)

getConvertedToBigDecimal

public Object getConvertedToBigDecimal(Object value)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.