Package org.hibernate.usertype.internal
Class ZonedDateTimeCompositeUserType
- java.lang.Object
-
- org.hibernate.usertype.internal.AbstractTimeZoneStorageCompositeUserType<ZonedDateTime>
-
- org.hibernate.usertype.internal.ZonedDateTimeCompositeUserType
-
- All Implemented Interfaces:
EmbeddableInstantiator
,Instantiator
,CompositeUserType<ZonedDateTime>
public class ZonedDateTimeCompositeUserType extends AbstractTimeZoneStorageCompositeUserType<ZonedDateTime>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZonedDateTimeCompositeUserType.ZonedDateTimeEmbeddable
-
Field Summary
-
Fields inherited from class org.hibernate.usertype.internal.AbstractTimeZoneStorageCompositeUserType
INSTANT_NAME, ZONE_OFFSET_NAME
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeCompositeUserType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
embeddable()
The class that represents the embeddable mapping of the type.Object
getPropertyValue(ZonedDateTime component, int property)
Get the value of a property.ZonedDateTime
instantiate(ValueAccess values, SessionFactoryImplementor sessionFactory)
Create an instance of the embeddableClass<ZonedDateTime>
returnedClass()
The class returned byinstantiate()
.-
Methods inherited from class org.hibernate.usertype.internal.AbstractTimeZoneStorageCompositeUserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.usertype.CompositeUserType
isInstance, isSameClass
-
-
-
-
Method Detail
-
getPropertyValue
public Object getPropertyValue(ZonedDateTime component, int property) throws HibernateException
Description copied from interface:CompositeUserType
Get the value of a property.- Parameters:
component
- an instance of class mapped by this "type"property
- the property index- Returns:
- the property value
- Throws:
HibernateException
-
instantiate
public ZonedDateTime instantiate(ValueAccess values, SessionFactoryImplementor sessionFactory)
Description copied from interface:EmbeddableInstantiator
Create an instance of the embeddable
-
embeddable
public Class<?> embeddable()
Description copied from interface:CompositeUserType
The class that represents the embeddable mapping of the type.- Returns:
- Class
-
returnedClass
public Class<ZonedDateTime> returnedClass()
Description copied from interface:CompositeUserType
The class returned byinstantiate()
.- Returns:
- Class
-
-