public class PersistentInstantAsTimestamp extends AbstractVersionableUserType<org.joda.time.Instant,Timestamp,TimestampColumnInstantMapper> implements org.hibernate.usertype.ParameterizedType, IntegratorConfiguredType
Instant
via Hibernate using a JDBC Timestamp datatype with a reference date. - note that sub-second values will not
be retained. The type is stored using UTC timezone.
Alternatively provide the 'databaseZone' parameter in the DateTimeZone.forID(String)
format
to indicate the zone of the database.
N.B. To use the zone of the JVM supply 'jvm'Constructor and Description |
---|
PersistentInstantAsTimestamp() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
applyConfiguration, next, seed
getParameterValues, setParameterValues
doNullSafeGet, doNullSafeSet, fromXMLString, getColumnMapper, nullSafeGet, nullSafeSet, objectToSQLString, returnedClass, sqlTypes, toXMLString
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, sqlTypes
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public PersistentInstantAsTimestamp()
public int compare(Object o1, Object o2)
compare
in interface Comparator
compare
in class AbstractVersionableUserType<org.joda.time.Instant,Timestamp,TimestampColumnInstantMapper>
Copyright © 2010–2014 Jadira Systems. All rights reserved.