Class RowVersionType

    • Constructor Detail

      • RowVersionType

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

        public byte[] seed​(SharedSessionContractImplementor session)
        Description copied from interface: VersionType
        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

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

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