Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      MyIntegerType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Comparator<Integer> getComparator()  
      Serializable getDefaultValue()  
      String getName()  
      Class getPrimitiveClass()  
      String[] getRegistrationKeys()  
      Integer next​(Integer current, org.hibernate.engine.spi.SessionImplementor session)  
      String objectToSQLString​(Integer value, org.hibernate.dialect.Dialect dialect)  
      Integer seed​(org.hibernate.engine.spi.SessionImplementor session)  
      Integer stringToObject​(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 interface org.hibernate.type.PrimitiveType

        toString
      • 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
    • Constructor Detail

      • MyIntegerType

        public MyIntegerType()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.hibernate.type.Type
      • getRegistrationKeys

        public String[] getRegistrationKeys()
        Specified by:
        getRegistrationKeys in interface org.hibernate.type.BasicType
        Overrides:
        getRegistrationKeys in class org.hibernate.type.AbstractStandardBasicType<Integer>
      • getDefaultValue

        public Serializable getDefaultValue()
        Specified by:
        getDefaultValue in interface org.hibernate.type.PrimitiveType<Integer>
      • getPrimitiveClass

        public Class getPrimitiveClass()
        Specified by:
        getPrimitiveClass in interface org.hibernate.type.PrimitiveType<Integer>
      • objectToSQLString

        public String objectToSQLString​(Integer value,
                                        org.hibernate.dialect.Dialect dialect)
                                 throws Exception
        Specified by:
        objectToSQLString in interface org.hibernate.type.LiteralType<Integer>
        Throws:
        Exception
      • stringToObject

        public Integer stringToObject​(String xml)
        Specified by:
        stringToObject in interface org.hibernate.type.IdentifierType<Integer>
      • seed

        public Integer seed​(org.hibernate.engine.spi.SessionImplementor session)
        Specified by:
        seed in interface org.hibernate.type.VersionType<Integer>
      • next

        public Integer next​(Integer current,
                            org.hibernate.engine.spi.SessionImplementor session)
        Specified by:
        next in interface org.hibernate.type.VersionType<Integer>
      • getComparator

        public Comparator<Integer> getComparator()
        Specified by:
        getComparator in interface org.hibernate.type.VersionType<Integer>