Class ShortType

    • Field Detail

      • INSTANCE

        public static final ShortType INSTANCE
    • Constructor Detail

      • ShortType

        public ShortType()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Type
        Returns the abbreviated name of the type.
        Specified by:
        getName in interface Type
        Returns:
        String the Hibernate type name
      • getDefaultValue

        public java.io.Serializable getDefaultValue()
        Description copied from interface: PrimitiveType
        Get this type's default value.
        Specified by:
        getDefaultValue in interface PrimitiveType<java.lang.Short>
        Returns:
        The default value.
      • objectToSQLString

        public java.lang.String objectToSQLString​(java.lang.Short value,
                                                  Dialect dialect)
        Description copied from interface: LiteralType
        Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.
        Specified by:
        objectToSQLString in interface LiteralType<java.lang.Short>
        Parameters:
        value - The value to convert
        dialect - The SQL dialect
        Returns:
        The value's string representation
      • stringToObject

        public java.lang.Short stringToObject​(java.lang.String xml)
        Description copied from interface: IdentifierType
        Convert the value from the mapping file to a Java object.
        Specified by:
        stringToObject in interface IdentifierType<java.lang.Short>
        Parameters:
        xml - the value of discriminator-value or unsaved-value attribute
        Returns:
        The converted value of the string representation.
      • seed

        public java.lang.Short seed​(SharedSessionContractImplementor session)
        Description copied from interface: VersionType
        Generate an initial version.
        Specified by:
        seed in interface VersionType<java.lang.Short>
        Parameters:
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • next

        public java.lang.Short next​(java.lang.Short current,
                                    SharedSessionContractImplementor session)
        Description copied from interface: VersionType
        Increment the version.
        Specified by:
        next in interface VersionType<java.lang.Short>
        Parameters:
        current - the current version
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • getComparator

        public java.util.Comparator<java.lang.Short> getComparator()
        Description copied from interface: VersionType
        Get a comparator for version values.
        Specified by:
        getComparator in interface VersionType<java.lang.Short>
        Returns:
        The comparator to use to compare different version values.