Package org.openxava.types
Class Date3Type
java.lang.Object
org.openxava.types.Date3Type
- All Implemented Interfaces:
org.hibernate.usertype.CompositeUserType
In java a java.util.Date and in database 3 columns of
integer type.
- Author:
- Javier Paniza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable cached, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) disassemble(Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) booleanString[]org.hibernate.type.Type[]getPropertyValue(Object component, int property) intbooleannullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) voidnullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) replace(Object original, Object target, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) voidsetPropertyValue(Object component, int property, Object value)
-
Constructor Details
-
Date3Type
public Date3Type()
-
-
Method Details
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyTypes
public org.hibernate.type.Type[] getPropertyTypes()- Specified by:
getPropertyTypesin interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyValue
public Object getPropertyValue(Object component, int property) throws org.hibernate.HibernateException - Specified by:
getPropertyValuein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
setPropertyValue
public void setPropertyValue(Object component, int property, Object value) throws org.hibernate.HibernateException - Specified by:
setPropertyValuein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.CompositeUserType
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
deepCopy
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.CompositeUserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.CompositeUserType
-