Interface VersionJavaType<T>

    • Method Detail

      • seed

        T seed​(Long length,
               Integer precision,
               Integer scale,
               SharedSessionContractImplementor session)
        Generate an initial version.
        Parameters:
        length - The length of the type
        precision - The precision of the type
        scale - The scale of the type
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • next

        T next​(T current,
               Long length,
               Integer precision,
               Integer scale,
               SharedSessionContractImplementor session)
        Increment the version.
        Parameters:
        current - the current version
        length - The length of the type
        precision - The precision of the type
        scale - The scale of the type
        session - The session from which this request originates.
        Returns:
        an instance of the type