Package org.openxava.types
Class Date3Type
- java.lang.Object
-
- org.openxava.types.Date3Type
-
- All Implemented Interfaces:
org.hibernate.usertype.CompositeUserType
public class Date3Type extends java.lang.Object implements org.hibernate.usertype.CompositeUserTypeIn java a java.util.Date and in database 3 columns of integer type.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description Date3Type()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectassemble(java.io.Serializable cached, org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object owner)java.lang.ObjectdeepCopy(java.lang.Object value)java.io.Serializabledisassemble(java.lang.Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session)booleanequals(java.lang.Object x, java.lang.Object y)java.lang.String[]getPropertyNames()org.hibernate.type.Type[]getPropertyTypes()java.lang.ObjectgetPropertyValue(java.lang.Object component, int property)inthashCode(java.lang.Object x)booleanisMutable()java.lang.ObjectnullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object owner)voidnullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)java.lang.Objectreplace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object owner)java.lang.ClassreturnedClass()voidsetPropertyValue(java.lang.Object component, int property, java.lang.Object value)
-
-
-
Method Detail
-
getPropertyNames
public java.lang.String[] getPropertyNames()
- Specified by:
getPropertyNamesin interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyTypes
public org.hibernate.type.Type[] getPropertyTypes()
- Specified by:
getPropertyTypesin interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object component, int property) throws org.hibernate.HibernateException- Specified by:
getPropertyValuein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
setPropertyValue
public void setPropertyValue(java.lang.Object component, int property, java.lang.Object value) throws org.hibernate.HibernateException- Specified by:
setPropertyValuein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
returnedClass
public java.lang.Class returnedClass()
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.CompositeUserType
-
equals
public boolean equals(java.lang.Object x, java.lang.Object y) throws org.hibernate.HibernateException- Specified by:
equalsin interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
hashCode
public int hashCode(java.lang.Object x) throws org.hibernate.HibernateException- Specified by:
hashCodein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
nullSafeGet
public java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object owner) throws org.hibernate.HibernateException, java.sql.SQLException- Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateExceptionjava.sql.SQLException
-
nullSafeSet
public void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, java.sql.SQLException- Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateExceptionjava.sql.SQLException
-
deepCopy
public java.lang.Object deepCopy(java.lang.Object value) throws org.hibernate.HibernateException- Specified by:
deepCopyin interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.hibernate.usertype.CompositeUserType
-
disassemble
public java.io.Serializable disassemble(java.lang.Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException- Specified by:
disassemblein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
assemble
public java.lang.Object assemble(java.io.Serializable cached, org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object owner) throws org.hibernate.HibernateException- Specified by:
assemblein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
replace
public java.lang.Object replace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object owner) throws org.hibernate.HibernateException- Specified by:
replacein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
-