|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.util.UserTypeBase
org.jcoderz.commons.util.LongUserTypeBase
public abstract class LongUserTypeBase
This class is used by the Hibernate binding for long based strong types.
| Constructor Summary | |
|---|---|
LongUserTypeBase()
|
|
| Method Summary | |
|---|---|
abstract Object |
fromLong(long value)
Implement this method for the particular StrongType. |
Object |
nullSafeGet(ResultSet resultSet,
String[] types,
Object owner)
|
void |
nullSafeSet(PreparedStatement statement,
Object value,
int index)
|
int[] |
sqlTypes()
|
abstract long |
toLong(Object value)
Implement this method for the particular StrongType. |
| Methods inherited from class org.jcoderz.commons.util.UserTypeBase |
|---|
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace, returnedClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongUserTypeBase()
| Method Detail |
|---|
public Object nullSafeGet(ResultSet resultSet,
String[] types,
Object owner)
throws org.hibernate.HibernateException,
SQLException
nullSafeGet in interface org.hibernate.usertype.UserTypenullSafeGet in class UserTypeBaseorg.hibernate.HibernateException
SQLExceptionpublic abstract Object fromLong(long value)
value - the long representation of the mapped class
public abstract long toLong(Object value)
value - the StrongType to be converted into its
numeric representation.
public void nullSafeSet(PreparedStatement statement,
Object value,
int index)
throws org.hibernate.HibernateException,
SQLException
nullSafeSet in interface org.hibernate.usertype.UserTypenullSafeSet in class UserTypeBaseorg.hibernate.HibernateException
SQLExceptionpublic int[] sqlTypes()
sqlTypes in interface org.hibernate.usertype.UserTypesqlTypes in class UserTypeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||