org.jcoderz.commons.types.samples
Class SampleFixPointUserType
java.lang.Object
org.jcoderz.commons.util.UserTypeBase
org.jcoderz.commons.util.BigDecimalUserTypeBase
org.jcoderz.commons.types.samples.SampleFixPointUserType
- All Implemented Interfaces:
- Serializable, org.hibernate.usertype.UserType
public final class SampleFixPointUserType
- extends BigDecimalUserTypeBase
Hibernate user type for the SampleFixPoint.
- Author:
- generated via stylesheet
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleFixPointUserType
public SampleFixPointUserType()
getType
public static org.hibernate.type.Type getType()
- Hibernate SampleFixPoint type as mapped
from this UserType.
- Returns:
- this UserType as org.hibernate.type.Type.
fromBigDecimal
public Object fromBigDecimal(BigDecimal value)
- Creates a SampleFixPoint from its numeric
BigDecimal database representation.
- Specified by:
fromBigDecimal in class BigDecimalUserTypeBase
- Parameters:
value - a BigDecimal holding the database representation of the
SampleFixPoint.
- Returns:
- a SampleFixPoint representing the
given BigDecimal.
- See Also:
SampleFixPoint.valueOf(BigDecimal)
toBigDecimal
public BigDecimal toBigDecimal(Object value)
- Converts the SampleFixPoint to its numeric
BigDecimal database representation.
- Specified by:
toBigDecimal in class BigDecimalUserTypeBase
- Parameters:
value - the SampleFixPoint to be
converted.
- Returns:
- a BigDecimal representing the
given SampleFixPoint.
- See Also:
SampleFixPoint.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:
- SampleFixPoint.class as the supported class of this user type.
Copyright 2007 The jCoderZ Project.