类 RowVersionType

    • 构造器详细资料

      • RowVersionType

        public RowVersionType()
    • 方法详细资料

      • getName

        public String getName()
        从接口复制的说明: Type
        Returns the abbreviated name of the type.
        指定者:
        getName 在接口中 Type
        返回:
        String the Hibernate type name
      • seed

        public byte[] seed​(SharedSessionContractImplementor session)
        从接口复制的说明: VersionType
        Generate an initial version.
        指定者:
        seed 在接口中 VersionType<byte[]>
        参数:
        session - The session from which this request originates.
        返回:
        an instance of the type
      • next

        public byte[] next​(byte[] current,
                           SharedSessionContractImplementor session)
        从接口复制的说明: VersionType
        Increment the version.
        指定者:
        next 在接口中 VersionType<byte[]>
        参数:
        current - the current version
        session - The session from which this request originates.
        返回:
        an instance of the type
      • getComparator

        public Comparator<byte[]> getComparator()
        从接口复制的说明: VersionType
        Get a comparator for version values.
        指定者:
        getComparator 在接口中 VersionType<byte[]>
        返回:
        The comparator to use to compare different version values.