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