public class PersistentDateTimeAndZoneWithOffset extends AbstractParameterizedTemporalMultiColumnUserType<org.joda.time.DateTime>
DateTime
via Hibernate. The offset will be stored in an extra column.
This class replaces PersistentDateTimeWithZone, which will be removed in future. When you migrate to
this class you are encouraged to retest as the behaviour is slightly different.Constructor and Description |
---|
PersistentDateTimeAndZoneWithOffset() |
Modifier and Type | Method and Description |
---|---|
protected org.joda.time.DateTime |
fromConvertedColumns(Object[] convertedColumns) |
protected ColumnMapper<?,?>[] |
getColumnMappers() |
String[] |
getPropertyNames() |
protected Object[] |
toConvertedColumns(org.joda.time.DateTime 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
public PersistentDateTimeAndZoneWithOffset()
protected ColumnMapper<?,?>[] getColumnMappers()
getColumnMappers
in class AbstractMultiColumnUserType<org.joda.time.DateTime>
public String[] getPropertyNames()
getPropertyNames
in interface org.hibernate.usertype.CompositeUserType
getPropertyNames
in class AbstractMultiColumnUserType<org.joda.time.DateTime>
protected org.joda.time.DateTime fromConvertedColumns(Object[] convertedColumns)
fromConvertedColumns
in class AbstractMultiColumnUserType<org.joda.time.DateTime>
protected Object[] toConvertedColumns(org.joda.time.DateTime value)
toConvertedColumns
in class AbstractMultiColumnUserType<org.joda.time.DateTime>
Copyright © 2010–2018 Jadira Systems. All rights reserved.