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.CompositeUserType
org.hibernate.HibernateException
public Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public Serializable disassemble(Object value, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public String[] getPropertyNames()
getPropertyNames
in interface org.hibernate.usertype.CompositeUserType
public org.hibernate.type.Type[] getPropertyTypes()
getPropertyTypes
in interface org.hibernate.usertype.CompositeUserType
public Object getPropertyValue(Object component, int property) throws org.hibernate.HibernateException
getPropertyValue
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.CompositeUserType
public Object nullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.SessionImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
SQLException
public void nullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException, SQLException
nullSafeSet
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
SQLException
public Object replace(Object original, Object target, org.hibernate.engine.SessionImplementor session, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public Class returnedClass()
returnedClass
in interface org.hibernate.usertype.CompositeUserType
Copyright © 2005–2015 Joda.org. All rights reserved.