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

java.lang.Object
  extended by com.liferay.portal.dao.orm.hibernate.DoubleType
All Implemented Interfaces:
java.io.Serializable, org.hibernate.usertype.CompositeUserType

public class DoubleType
extends java.lang.Object
implements org.hibernate.usertype.CompositeUserType, java.io.Serializable

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
static java.lang.Double DEFAULT_VALUE
           
 
Constructor Summary
DoubleType()
           
 
Method Summary
 java.lang.Object assemble(java.io.Serializable cached, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
           
 java.lang.Object deepCopy(java.lang.Object obj)
           
 java.io.Serializable disassemble(java.lang.Object value, org.hibernate.engine.SessionImplementor session)
           
 boolean equals(java.lang.Object x, java.lang.Object y)
           
 java.lang.String[] getPropertyNames()
           
 org.hibernate.type.Type[] getPropertyTypes()
           
 java.lang.Object getPropertyValue(java.lang.Object component, int property)
           
 int hashCode(java.lang.Object x)
           
 boolean isMutable()
           
 java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
           
 void nullSafeSet(java.sql.PreparedStatement ps, java.lang.Object target, int index, org.hibernate.engine.SessionImplementor session)
           
 java.lang.Object replace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
           
 java.lang.Class<java.lang.Double> returnedClass()
           
 void setPropertyValue(java.lang.Object component, int property, java.lang.Object value)
           
 
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 java.lang.Double DEFAULT_VALUE
Constructor Detail

DoubleType

public DoubleType()
Method Detail

assemble

public java.lang.Object assemble(java.io.Serializable cached,
                                 org.hibernate.engine.SessionImplementor session,
                                 java.lang.Object owner)
Specified by:
assemble in interface org.hibernate.usertype.CompositeUserType

deepCopy

public java.lang.Object deepCopy(java.lang.Object obj)
Specified by:
deepCopy in interface org.hibernate.usertype.CompositeUserType

disassemble

public java.io.Serializable disassemble(java.lang.Object value,
                                        org.hibernate.engine.SessionImplementor session)
Specified by:
disassemble in interface org.hibernate.usertype.CompositeUserType

equals

public boolean equals(java.lang.Object x,
                      java.lang.Object y)
Specified by:
equals in interface org.hibernate.usertype.CompositeUserType

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in interface org.hibernate.usertype.CompositeUserType

getPropertyTypes

public org.hibernate.type.Type[] getPropertyTypes()
Specified by:
getPropertyTypes in interface org.hibernate.usertype.CompositeUserType

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object component,
                                         int property)
Specified by:
getPropertyValue in interface org.hibernate.usertype.CompositeUserType

hashCode

public int hashCode(java.lang.Object x)
Specified by:
hashCode in interface org.hibernate.usertype.CompositeUserType

isMutable

public boolean isMutable()
Specified by:
isMutable in interface org.hibernate.usertype.CompositeUserType

nullSafeGet

public java.lang.Object nullSafeGet(java.sql.ResultSet rs,
                                    java.lang.String[] names,
                                    org.hibernate.engine.SessionImplementor session,
                                    java.lang.Object owner)
                             throws java.sql.SQLException
Specified by:
nullSafeGet in interface org.hibernate.usertype.CompositeUserType
Throws:
java.sql.SQLException

nullSafeSet

public void nullSafeSet(java.sql.PreparedStatement ps,
                        java.lang.Object target,
                        int index,
                        org.hibernate.engine.SessionImplementor session)
                 throws java.sql.SQLException
Specified by:
nullSafeSet in interface org.hibernate.usertype.CompositeUserType
Throws:
java.sql.SQLException

replace

public java.lang.Object replace(java.lang.Object original,
                                java.lang.Object target,
                                org.hibernate.engine.SessionImplementor session,
                                java.lang.Object owner)
Specified by:
replace in interface org.hibernate.usertype.CompositeUserType

returnedClass

public java.lang.Class<java.lang.Double> returnedClass()
Specified by:
returnedClass in interface org.hibernate.usertype.CompositeUserType

setPropertyValue

public void setPropertyValue(java.lang.Object component,
                             int property,
                             java.lang.Object value)
Specified by:
setPropertyValue in interface org.hibernate.usertype.CompositeUserType