org.jcoderz.commons.types.samples
Class TestEnumExpliciteValueUserType

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

public final class TestEnumExpliciteValueUserType
extends IntUserTypeBase

Hibernate user type for the TestEnumExpliciteValue.

Author:
generated via stylesheet
See Also:
Serialized Form

Constructor Summary
TestEnumExpliciteValueUserType()
           
 
Method Summary
 Object fromInt(int value)
          Creates a TestEnumExpliciteValue from its numeric int database representation.
static org.hibernate.type.Type getType()
          Hibernate TestEnumExpliciteValue type as mapped from this UserType.
 Class returnedClass()
          
 int toInt(Object value)
          Converts the TestEnumExpliciteValue to its numeric int database representation.
 
Methods inherited from class org.jcoderz.commons.util.IntUserTypeBase
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

TestEnumExpliciteValueUserType

public TestEnumExpliciteValueUserType()
Method Detail

getType

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

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

fromInt

public Object fromInt(int value)
Creates a TestEnumExpliciteValue from its numeric int database representation.

Specified by:
fromInt in class IntUserTypeBase
Parameters:
value - a int holding the database representation of the TestEnumExpliciteValue.
Returns:
a TestEnumExpliciteValue representing the given int.
See Also:
TestEnumExpliciteValue.fromInt(int)

toInt

public int toInt(Object value)
Converts the TestEnumExpliciteValue to its numeric int database representation.

Specified by:
toInt in class IntUserTypeBase
Parameters:
value - the TestEnumExpliciteValue to be converted.
Returns:
a int representing the given TestEnumExpliciteValue.
See Also:
TestEnumExpliciteValue.toInt()

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:
TestEnumExpliciteValue.class as the supported class of this user type.


Copyright 2007 The jCoderZ Project.