Package org.hibernate.usertype.internal
Class OffsetTimeCompositeUserType
- java.lang.Object
-
- org.hibernate.usertype.internal.AbstractTimeZoneStorageCompositeUserType<OffsetTime>
-
- org.hibernate.usertype.internal.OffsetTimeCompositeUserType
-
- All Implemented Interfaces:
EmbeddableInstantiator,Instantiator,CompositeUserType<OffsetTime>
public class OffsetTimeCompositeUserType extends AbstractTimeZoneStorageCompositeUserType<OffsetTime>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOffsetTimeCompositeUserType.OffsetTimeEmbeddable
-
Field Summary
Fields Modifier and Type Field Description static StringLOCAL_TIME_NAME-
Fields inherited from class org.hibernate.usertype.internal.AbstractTimeZoneStorageCompositeUserType
INSTANT_NAME, ZONE_OFFSET_NAME
-
-
Constructor Summary
Constructors Constructor Description OffsetTimeCompositeUserType()
-
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.ObjectgetPropertyValue(OffsetTime component, int property)Get the value of the property with the given index.OffsetTimeinstantiate(ValueAccess values, SessionFactoryImplementor sessionFactory)Create an instance of the embeddableClass<OffsetTime>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
-
-
-
-
Field Detail
-
LOCAL_TIME_NAME
public static final String LOCAL_TIME_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPropertyValue
public Object getPropertyValue(OffsetTime component, int property) throws HibernateException
Description copied from interface:CompositeUserTypeGet the value of the property with the given index. Properties of theCompositeUserType.embeddable()are sorted by name and assigned an index based on this ordering.- Parameters:
component- an instance of class mapped by this "type"property- the property index- Returns:
- the property value
- Throws:
HibernateException
-
instantiate
public OffsetTime instantiate(ValueAccess values, SessionFactoryImplementor sessionFactory)
Description copied from interface:EmbeddableInstantiatorCreate an instance of the embeddable
-
embeddable
public Class<?> embeddable()
Description copied from interface:CompositeUserTypeThe class that represents the embeddable mapping of the type.
-
returnedClass
public Class<OffsetTime> returnedClass()
Description copied from interface:CompositeUserTypeThe class returned byinstantiate().
-
-