Class HibernateIntegerType.MyIntegerType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<Integer>
-
- org.sqlproc.engine.hibernate.type.HibernateIntegerType.MyIntegerType
-
- All Implemented Interfaces:
Serializable,org.hibernate.type.BasicType,org.hibernate.type.DiscriminatorType<Integer>,org.hibernate.type.IdentifierType<Integer>,org.hibernate.type.LiteralType<Integer>,org.hibernate.type.PrimitiveType<Integer>,org.hibernate.type.SingleColumnType<Integer>,org.hibernate.type.StringRepresentableType<Integer>,org.hibernate.type.Type,org.hibernate.type.VersionType<Integer>,org.hibernate.type.XmlRepresentableType<Integer>
- Enclosing class:
- HibernateIntegerType
public static class HibernateIntegerType.MyIntegerType extends org.hibernate.type.AbstractSingleColumnStandardBasicType<Integer> implements org.hibernate.type.PrimitiveType<Integer>, org.hibernate.type.DiscriminatorType<Integer>, org.hibernate.type.VersionType<Integer>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static HibernateIntegerType.MyIntegerTypeINSTANCEstatic IntegerZERO
-
Constructor Summary
Constructors Constructor Description MyIntegerType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Integer>getComparator()SerializablegetDefaultValue()StringgetName()ClassgetPrimitiveClass()String[]getRegistrationKeys()Integernext(Integer current, org.hibernate.engine.spi.SessionImplementor session)StringobjectToSQLString(Integer value, org.hibernate.dialect.Dialect dialect)Integerseed(org.hibernate.engine.spi.SessionImplementor session)IntegerstringToObject(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 HibernateIntegerType.MyIntegerType INSTANCE
-
ZERO
public static final Integer 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<Integer>
-
getDefaultValue
public Serializable getDefaultValue()
- Specified by:
getDefaultValuein interfaceorg.hibernate.type.PrimitiveType<Integer>
-
getPrimitiveClass
public Class getPrimitiveClass()
- Specified by:
getPrimitiveClassin interfaceorg.hibernate.type.PrimitiveType<Integer>
-
objectToSQLString
public String objectToSQLString(Integer value, org.hibernate.dialect.Dialect dialect) throws Exception
-
stringToObject
public Integer stringToObject(String xml)
- Specified by:
stringToObjectin interfaceorg.hibernate.type.IdentifierType<Integer>
-
seed
public Integer seed(org.hibernate.engine.spi.SessionImplementor session)
- Specified by:
seedin interfaceorg.hibernate.type.VersionType<Integer>
-
next
public Integer next(Integer current, org.hibernate.engine.spi.SessionImplementor session)
- Specified by:
nextin interfaceorg.hibernate.type.VersionType<Integer>
-
getComparator
public Comparator<Integer> getComparator()
- Specified by:
getComparatorin interfaceorg.hibernate.type.VersionType<Integer>
-
-