public class PersistentInterval extends AbstractParameterizedTemporalMultiColumnUserType<org.joda.time.Interval> implements org.hibernate.usertype.ParameterizedType, IntegratorConfiguredType
Interval
via Hibernate. The interval type is intended to be compatible with
org.joda.time.contrib.hibernate.PersistentInterval and stores beginning and end values.
The types are stored using the timezone as configured
using Hibernate's configuration property 'hibernate.jdbc.time_zone' and presented in the
JVM using the JVM's default zone. You can optionally override or use as an alternative to this property the
parameter 'databaseZone' on this type.
Alternatively provide the 'javaZone' can be used to similarly configure the zone of the
value on return from the database.Constructor and Description |
---|
PersistentInterval() |
Modifier and Type | Method and Description |
---|---|
protected org.joda.time.Interval |
fromConvertedColumns(Object[] convertedColumns) |
protected TimestampColumnDateTimeMapper[] |
getColumnMappers() |
String[] |
getPropertyNames() |
protected Object[] |
toConvertedColumns(org.joda.time.Interval value) |
applyConfiguration
doWrapSession, getParameterValues, setParameterValues
assemble, disassemble, getPropertyTypes, getPropertyValue, initialise, nullSafeGet, nullSafeSet, replace, returnedClass, setPropertyValue, sqlTypes
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration
public PersistentInterval()
protected org.joda.time.Interval fromConvertedColumns(Object[] convertedColumns)
fromConvertedColumns
in class AbstractMultiColumnUserType<org.joda.time.Interval>
protected TimestampColumnDateTimeMapper[] getColumnMappers()
getColumnMappers
in class AbstractMultiColumnUserType<org.joda.time.Interval>
protected Object[] toConvertedColumns(org.joda.time.Interval value)
toConvertedColumns
in class AbstractMultiColumnUserType<org.joda.time.Interval>
public String[] getPropertyNames()
getPropertyNames
in interface org.hibernate.usertype.CompositeUserType
getPropertyNames
in class AbstractMultiColumnUserType<org.joda.time.Interval>
Copyright © 2010–2018 Jadira Systems. All rights reserved.