public class JodaDateTimeType extends Object implements org.hibernate.usertype.EnhancedUserType, Serializable, org.hibernate.type.StringRepresentableType<org.joda.time.DateTime>
| Modifier and Type | Field and Description |
|---|---|
static JodaDateTimeType |
INSTANCE |
| Constructor and Description |
|---|
JodaDateTimeType() |
| Modifier and Type | Method and Description |
|---|---|
Object |
assemble(Serializable cached,
Object value) |
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value) |
boolean |
equals(Object x,
Object y) |
org.joda.time.DateTime |
fromStringValue(String string) |
Object |
fromXMLString(String string) |
int |
hashCode(Object object) |
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) |
String |
objectToSQLString(Object object) |
Object |
replace(Object original,
Object target,
Object owner) |
Class<org.joda.time.DateTime> |
returnedClass() |
int[] |
sqlTypes() |
String |
toString(org.joda.time.DateTime value) |
String |
toXMLString(Object object) |
public static final JodaDateTimeType INSTANCE
public int[] sqlTypes()
sqlTypes in interface org.hibernate.usertype.UserTypepublic Class<org.joda.time.DateTime> returnedClass()
returnedClass in interface org.hibernate.usertype.UserTypepublic boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic int hashCode(Object object) throws org.hibernate.HibernateException
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic 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.UserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic 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.UserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic boolean isMutable()
isMutable in interface org.hibernate.usertype.UserTypepublic Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Object assemble(Serializable cached, Object value) throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic String objectToSQLString(Object object)
objectToSQLString in interface org.hibernate.usertype.EnhancedUserTypepublic String toXMLString(Object object)
toXMLString in interface org.hibernate.usertype.EnhancedUserTypepublic Object fromXMLString(String string)
fromXMLString in interface org.hibernate.usertype.EnhancedUserTypepublic String toString(org.joda.time.DateTime value) throws org.hibernate.HibernateException
toString in interface org.hibernate.type.StringRepresentableType<org.joda.time.DateTime>org.hibernate.HibernateExceptionpublic org.joda.time.DateTime fromStringValue(String string) throws org.hibernate.HibernateException
fromStringValue in interface org.hibernate.type.StringRepresentableType<org.joda.time.DateTime>org.hibernate.HibernateExceptionCopyright © 2015–2016 Taimos GmbH. All rights reserved.