com.liferay.portal.dao.orm.hibernate
Class LongType
java.lang.Object
com.liferay.portal.dao.orm.hibernate.LongType
- All Implemented Interfaces:
- Serializable, org.hibernate.usertype.UserType
public class LongType
- extends Object
- implements Serializable, org.hibernate.usertype.UserType
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_VALUE
public static final long DEFAULT_VALUE
- See Also:
- Constant Field Values
SQL_TYPES
public static final int[] SQL_TYPES
LongType
public LongType()
assemble
public Object assemble(Serializable cached,
Object owner)
- Specified by:
assemble
in interface org.hibernate.usertype.UserType
deepCopy
public Object deepCopy(Object obj)
- Specified by:
deepCopy
in interface org.hibernate.usertype.UserType
disassemble
public Serializable disassemble(Object value)
- Specified by:
disassemble
in interface org.hibernate.usertype.UserType
equals
public boolean equals(Object x,
Object y)
- Specified by:
equals
in interface org.hibernate.usertype.UserType
hashCode
public int hashCode(Object x)
- Specified by:
hashCode
in interface org.hibernate.usertype.UserType
isMutable
public boolean isMutable()
- Specified by:
isMutable
in interface org.hibernate.usertype.UserType
nullSafeGet
public Object nullSafeGet(ResultSet rs,
String[] names,
Object obj)
throws org.hibernate.HibernateException,
SQLException
- Specified by:
nullSafeGet
in interface org.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
SQLException
nullSafeSet
public void nullSafeSet(PreparedStatement ps,
Object obj,
int index)
throws org.hibernate.HibernateException,
SQLException
- Specified by:
nullSafeSet
in interface org.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
SQLException
replace
public Object replace(Object original,
Object target,
Object owner)
- Specified by:
replace
in interface org.hibernate.usertype.UserType
returnedClass
public Class<Long> returnedClass()
- Specified by:
returnedClass
in interface org.hibernate.usertype.UserType
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypes
in interface org.hibernate.usertype.UserType