org.jcoderz.commons.types.samples
Class TestEnumWiredTextUserType

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

public final class TestEnumWiredTextUserType
extends StringUserTypeBase

Hibernate user type for the TestEnumWiredText.

Author:
generated via stylesheet
See Also:
Serialized Form

Constructor Summary
TestEnumWiredTextUserType()
           
 
Method Summary
 Object fromString(String value)
          Creates a TestEnumWiredText from its String database representation.
 Object getEmptyOrNull()
          Implement this method for the particular RestrictedString.
static org.hibernate.type.Type getType()
          Hibernate TestEnumWiredText type as mapped from this UserType.
 Class returnedClass()
          
 
Methods inherited from class org.jcoderz.commons.util.StringUserTypeBase
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

TestEnumWiredTextUserType

public TestEnumWiredTextUserType()
Method Detail

getType

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

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

fromString

public Object fromString(String value)
Creates a TestEnumWiredText from its String database representation.

Specified by:
fromString in class StringUserTypeBase
Parameters:
value - a string holding the database representation of the TestEnumWiredText.
Returns:
a TestEnumWiredText representing the given string.
See Also:
TestEnumWiredText.fromString(String)

getEmptyOrNull

public Object getEmptyOrNull()
Description copied from class: StringUserTypeBase
Implement this method for the particular RestrictedString.

Specified by:
getEmptyOrNull in class StringUserTypeBase
Returns:
null as null representation of the type.

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


Copyright 2007 The jCoderZ Project.