Liferay 6.0.5

com.liferay.portal.dao.orm.hibernate
Class LongType

java.lang.Object
  extended by 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

Field Summary
static long DEFAULT_VALUE
           
static int[] SQL_TYPES
           
 
Constructor Summary
LongType()
           
 
Method Summary
 Object assemble(Serializable cached, Object owner)
           
 Object deepCopy(Object obj)
           
 Serializable disassemble(Object value)
           
 boolean equals(Object x, Object y)
           
 int hashCode(Object x)
           
 boolean isMutable()
           
 Object nullSafeGet(ResultSet rs, String[] names, Object obj)
           
 void nullSafeSet(PreparedStatement ps, Object obj, int index)
           
 Object replace(Object original, Object target, Object owner)
           
 Class<Long> returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VALUE

public static final long DEFAULT_VALUE
See Also:
Constant Field Values

SQL_TYPES

public static final int[] SQL_TYPES
Constructor Detail

LongType

public LongType()
Method Detail

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

Liferay 6.0.5