Class HibernateLongType.MyLongType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<Long>
-
- org.sqlproc.engine.hibernate.type.HibernateLongType.MyLongType
-
- All Implemented Interfaces:
Serializable,org.hibernate.type.BasicType,org.hibernate.type.DiscriminatorType<Long>,org.hibernate.type.IdentifierType<Long>,org.hibernate.type.LiteralType<Long>,org.hibernate.type.PrimitiveType<Long>,org.hibernate.type.SingleColumnType<Long>,org.hibernate.type.StringRepresentableType<Long>,org.hibernate.type.Type,org.hibernate.type.VersionType<Long>,org.hibernate.type.XmlRepresentableType<Long>
- Enclosing class:
- HibernateLongType
public static class HibernateLongType.MyLongType extends org.hibernate.type.AbstractSingleColumnStandardBasicType<Long> implements org.hibernate.type.PrimitiveType<Long>, org.hibernate.type.DiscriminatorType<Long>, org.hibernate.type.VersionType<Long>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static HibernateLongType.MyLongTypeINSTANCEprivate static LongZERO
-
Constructor Summary
Constructors Constructor Description MyLongType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Long>getComparator()SerializablegetDefaultValue()StringgetName()ClassgetPrimitiveClass()String[]getRegistrationKeys()Longnext(Long current, org.hibernate.engine.spi.SessionImplementor session)StringobjectToSQLString(Long value, org.hibernate.dialect.Dialect dialect)Longseed(org.hibernate.engine.spi.SessionImplementor session)LongstringToObject(String xml)-
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
-
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, fromString, fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toString
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Field Detail
-
INSTANCE
public static final HibernateLongType.MyLongType INSTANCE
-
ZERO
private static final Long ZERO
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.hibernate.type.Type
-
getRegistrationKeys
public String[] getRegistrationKeys()
- Specified by:
getRegistrationKeysin interfaceorg.hibernate.type.BasicType- Overrides:
getRegistrationKeysin classorg.hibernate.type.AbstractStandardBasicType<Long>
-
getDefaultValue
public Serializable getDefaultValue()
- Specified by:
getDefaultValuein interfaceorg.hibernate.type.PrimitiveType<Long>
-
getPrimitiveClass
public Class getPrimitiveClass()
- Specified by:
getPrimitiveClassin interfaceorg.hibernate.type.PrimitiveType<Long>
-
next
public Long next(Long current, org.hibernate.engine.spi.SessionImplementor session)
- Specified by:
nextin interfaceorg.hibernate.type.VersionType<Long>
-
seed
public Long seed(org.hibernate.engine.spi.SessionImplementor session)
- Specified by:
seedin interfaceorg.hibernate.type.VersionType<Long>
-
getComparator
public Comparator<Long> getComparator()
- Specified by:
getComparatorin interfaceorg.hibernate.type.VersionType<Long>
-
-