Class JodaLocalDateUserType
java.lang.Object
com.peterphi.std.guice.hibernate.usertype.JodaLocalDateUserType
- All Implemented Interfaces:
Comparator,org.hibernate.usertype.UserType
public class JodaLocalDateUserType
extends Object
implements org.hibernate.usertype.UserType, Comparator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.LocalDateassemble(Serializable cached, Object owner) intorg.joda.time.LocalDateorg.joda.time.LocalDatedisassemble(Object value) booleanintbooleanorg.joda.time.LocalDatenullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) voidnullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) org.joda.time.LocalDateint[]sqlTypes()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
JodaLocalDateUserType
public JodaLocalDateUserType()
-
-
Method Details
-
sqlTypes
public int[] sqlTypes()- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
deepCopy
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
assemble
public org.joda.time.LocalDate assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException - Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
replace
public org.joda.time.LocalDate replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException - Specified by:
replacein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
compare
- Specified by:
comparein interfaceComparator
-