public class XMLGregorianCalendarType extends Object implements org.hibernate.usertype.UserType
Constructor and Description |
---|
XMLGregorianCalendarType() |
Modifier and Type | Method and Description |
---|---|
static Date |
asDate(XMLGregorianCalendar xgc)
Converts an XMLGregorianCalendar to an instance of java.util.Date
|
Object |
assemble(Serializable cached,
Object owner) |
static XMLGregorianCalendar |
asXMLGregorianCalendar(Date date)
Converts a java.util.Date into an instance of XMLGregorianCalendar
|
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value) |
boolean |
equals(Object x,
Object y) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SessionImplementor session,
Object owner) |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
org.hibernate.engine.spi.SessionImplementor session) |
Object |
replace(Object original,
Object target,
Object owner) |
Class |
returnedClass() |
int[] |
sqlTypes() |
public static final String NAME
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public Class returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException, SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public static XMLGregorianCalendar asXMLGregorianCalendar(Date date)
date
- Instance of java.util.Date or a null referencepublic static Date asDate(XMLGregorianCalendar xgc)
xgc
- Instance of XMLGregorianCalendar or a null referenceCopyright © 2016 evolveum. All rights reserved.