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

      Constructors 
      Constructor Description
      MyLongType()  
    • Method Summary

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

      • MyLongType

        public MyLongType()
    • 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<Long>
      • getDefaultValue

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

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

        public Long stringToObject​(String xml)
                            throws Exception
        Specified by:
        stringToObject in interface org.hibernate.type.IdentifierType<Long>
        Throws:
        Exception
      • next

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

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

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

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