org.jcoderz.commons.types.samples
Class TestFixPointTwoUserType

java.lang.Object
  extended by org.jcoderz.commons.util.UserTypeBase
      extended by org.jcoderz.commons.util.BigDecimalUserTypeBase
          extended by org.jcoderz.commons.types.samples.TestFixPointTwoUserType
All Implemented Interfaces:
Serializable, org.hibernate.usertype.UserType

public final class TestFixPointTwoUserType
extends BigDecimalUserTypeBase

Hibernate user type for the TestFixPointTwo.

Author:
generated via stylesheet
See Also:
Serialized Form

Constructor Summary
TestFixPointTwoUserType()
           
 
Method Summary
 Object fromBigDecimal(BigDecimal value)
          Creates a TestFixPointTwo from its numeric BigDecimal database representation.
static org.hibernate.type.Type getType()
          Hibernate TestFixPointTwo type as mapped from this UserType.
 Class returnedClass()
          
 BigDecimal toBigDecimal(Object value)
          Converts the TestFixPointTwo to its numeric BigDecimal database representation.
 
Methods inherited from class org.jcoderz.commons.util.BigDecimalUserTypeBase
nullSafeGet, nullSafeSet, sqlTypes
 
Methods inherited from class org.jcoderz.commons.util.UserTypeBase
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

TestFixPointTwoUserType

public TestFixPointTwoUserType()
Method Detail

getType

public static org.hibernate.type.Type getType()
Hibernate TestFixPointTwo type as mapped from this UserType.

Returns:
this UserType as org.hibernate.type.Type.

fromBigDecimal

public Object fromBigDecimal(BigDecimal value)
Creates a TestFixPointTwo from its numeric BigDecimal database representation.

Specified by:
fromBigDecimal in class BigDecimalUserTypeBase
Parameters:
value - a BigDecimal holding the database representation of the TestFixPointTwo.
Returns:
a TestFixPointTwo representing the given BigDecimal.
See Also:
TestFixPointTwo.valueOf(BigDecimal)

toBigDecimal

public BigDecimal toBigDecimal(Object value)
Converts the TestFixPointTwo to its numeric BigDecimal database representation.

Specified by:
toBigDecimal in class BigDecimalUserTypeBase
Parameters:
value - the TestFixPointTwo to be converted.
Returns:
a BigDecimal representing the given TestFixPointTwo.
See Also:
TestFixPointTwo.toBigDecimal()

returnedClass

public Class returnedClass()
Description copied from class: UserTypeBase

Specified by:
returnedClass in interface org.hibernate.usertype.UserType
Specified by:
returnedClass in class UserTypeBase
Returns:
TestFixPointTwo.class as the supported class of this user type.


Copyright 2007 The jCoderZ Project.