Class YearMonthEpochType
java.lang.Object
io.hypersistence.utils.hibernate.type.ImmutableType<T>
io.hypersistence.utils.hibernate.type.DescriptorImmutableType<YearMonth,org.hibernate.type.descriptor.jdbc.SmallIntJdbcType,YearMonthEpochTypeDescriptor>
io.hypersistence.utils.hibernate.type.basic.YearMonthEpochType
- All Implemented Interfaces:
Serializable,org.hibernate.query.BindableType<YearMonth>,org.hibernate.query.sqm.SqmExpressible<YearMonth>,org.hibernate.type.Type,org.hibernate.usertype.EnhancedUserType<YearMonth>,org.hibernate.usertype.UserType<YearMonth>
public class YearMonthEpochType
extends DescriptorImmutableType<YearMonth,org.hibernate.type.descriptor.jdbc.SmallIntJdbcType,YearMonthEpochTypeDescriptor>
Maps a Java
YearMonth object to an small and continuous INT column type
which defines the months that passed since the Unix epoch.- Author:
- Vlad Mihalcea
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionYearMonthEpochType(Configuration configuration) YearMonthEpochType(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, 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
getRelationalJavaType, 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
-
YearMonthEpochType
public YearMonthEpochType() -
YearMonthEpochType
-
YearMonthEpochType
public YearMonthEpochType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.hibernate.type.Type- Overrides:
getNamein classImmutableType<YearMonth>
-
fromStringValue
- Throws:
org.hibernate.HibernateException
-