Class BinaryType

    • Field Detail

      • INSTANCE

        public static final BinaryType INSTANCE
    • Constructor Detail

      • BinaryType

        public BinaryType()
    • 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
      • seed

        @Deprecated
        public byte[] seed​(SharedSessionContractImplementor session)
        Deprecated.
        use RowVersionType for binary entity versions/timestamps
        Generate an initial version.
        Specified by:
        seed in interface VersionType<byte[]>
        Parameters:
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • next

        @Deprecated
        public byte[] next​(byte[] current,
                           SharedSessionContractImplementor session)
        Deprecated.
        use RowVersionType for binary entity versions/timestamps
        Increment the version.
        Specified by:
        next in interface VersionType<byte[]>
        Parameters:
        session - The session from which this request originates.
        current - the current version
        Returns:
        an instance of the type
      • getComparator

        @Deprecated
        public java.util.Comparator<byte[]> getComparator()
        Deprecated.
        use RowVersionType for binary entity versions/timestamps
        Get a comparator for version values.
        Specified by:
        getComparator in interface VersionType<byte[]>
        Returns:
        The comparator to use to compare different version values.