public class PersistentInterval extends Object implements org.hibernate.usertype.CompositeUserType, Serializable
Interval via hibernate. Internally, this class
collaborates with PersistentDateTime
to convert the start and end components of an Interval to and from the
database correspondents. This class allows clients to execute hibernate or
JPA queries using the attribute names "start" and "end." For example,
"from Foo where :date is between barInterval.start and barInterval.end"
| Constructor and Description |
|---|
PersistentInterval() |
| Modifier and Type | Method and Description |
|---|---|
Object |
assemble(Serializable cached,
org.hibernate.engine.SessionImplementor session,
Object owner) |
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value,
org.hibernate.engine.SessionImplementor session) |
boolean |
equals(Object x,
Object y) |
String[] |
getPropertyNames() |
org.hibernate.type.Type[] |
getPropertyTypes() |
Object |
getPropertyValue(Object component,
int property) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet resultSet,
String[] names,
org.hibernate.engine.SessionImplementor session,
Object owner) |
void |
nullSafeSet(PreparedStatement statement,
Object value,
int index,
org.hibernate.engine.SessionImplementor session) |
Object |
replace(Object original,
Object target,
org.hibernate.engine.SessionImplementor session,
Object owner) |
Class |
returnedClass() |
void |
setPropertyValue(Object component,
int property,
Object value) |
public Object assemble(Serializable cached, org.hibernate.engine.SessionImplementor session, Object owner) throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic Serializable disassemble(Object value, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic String[] getPropertyNames()
getPropertyNames in interface org.hibernate.usertype.CompositeUserTypepublic org.hibernate.type.Type[] getPropertyTypes()
getPropertyTypes in interface org.hibernate.usertype.CompositeUserTypepublic Object getPropertyValue(Object component, int property) throws org.hibernate.HibernateException
getPropertyValue in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic int hashCode(Object x) throws org.hibernate.HibernateException
hashCode in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic boolean isMutable()
isMutable in interface org.hibernate.usertype.CompositeUserTypepublic Object nullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.SessionImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic void nullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException, SQLException
nullSafeSet in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic Object replace(Object original, Object target, org.hibernate.engine.SessionImplementor session, Object owner) throws org.hibernate.HibernateException
replace in interface org.hibernate.usertype.CompositeUserTypeorg.hibernate.HibernateExceptionpublic Class returnedClass()
returnedClass in interface org.hibernate.usertype.CompositeUserTypeCopyright © 2005–2015 Joda.org. All rights reserved.