Class Iso8601MonthType
java.lang.Object
io.hypersistence.utils.hibernate.type.ImmutableType<T>
io.hypersistence.utils.hibernate.type.DescriptorImmutableType<Month,org.hibernate.type.descriptor.jdbc.IntegerJdbcType,Iso8601MonthMonthTypeDescriptor>
io.hypersistence.utils.hibernate.type.basic.Iso8601MonthType
- All Implemented Interfaces:
Serializable,org.hibernate.query.BindableType<Month>,org.hibernate.query.sqm.SqmExpressible<Month>,org.hibernate.type.Type,org.hibernate.usertype.EnhancedUserType<Month>,org.hibernate.usertype.UserType<Month>
public class Iso8601MonthType
extends DescriptorImmutableType<Month,org.hibernate.type.descriptor.jdbc.IntegerJdbcType,Iso8601MonthMonthTypeDescriptor>
Maps a
Month object type to a INT column type
which is saved as value from 1 (January) to 12 (December),
according to the ISO 8601 standard.- Author:
- Martin Panzer
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIso8601MonthType(Configuration configuration) Iso8601MonthType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext) -
Method Summary
Methods inherited from class io.hypersistence.utils.hibernate.type.DescriptorImmutableType
get, getBindableJavaType, getExpressibleJavaType, getSqlType, nullSafeGet, nullSafeSet, setMethods inherited from class io.hypersistence.utils.hibernate.type.ImmutableType
assemble, assemble, beforeAssemble, compare, deepCopy, deepCopy, disassemble, disassemble, equals, getColumnSpan, getConfiguration, getHashCode, getHashCode, getReturnedClass, getSqlTypeCodes, hashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, replace, replace, replace, returnedClass, toColumnNullness, toLoggableString, toSqlLiteral, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
isInstance, resolveExpressibleMethods inherited from interface org.hibernate.type.Type
disassembleMethods inherited from interface org.hibernate.usertype.UserType
getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Iso8601MonthType
public Iso8601MonthType() -
Iso8601MonthType
-
Iso8601MonthType
public Iso8601MonthType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.hibernate.type.Type- Overrides:
getNamein classImmutableType<Month>
-
fromStringValue
- Throws:
org.hibernate.HibernateException
-