Interface ForUpdateOption

All Known Implementing Classes:
ForUpdateOption.Basic, ForUpdateOption.None, ForUpdateOption.NoWait, ForUpdateOption.Wait

public interface ForUpdateOption
Represents the option that decides whether to append the FOR UPDATE clause or not.
  • Method Details

    • none

      static ForUpdateOption none()
      Indicates that the option does nothing.
      Returns:
      the option
    • basic

      static ForUpdateOption basic(PropertyMetamodel<?>... propertyMetamodels)
      Indicate that the option append the FOR UPDATE clause.
      Parameters:
      propertyMetamodels - properties to be locked
      Returns:
      the option
    • noWait

      static ForUpdateOption noWait(PropertyMetamodel<?>... propertyMetamodels)
      Indicate that the option append the FOR UPDATE ... NO WAIT clause.
      Parameters:
      propertyMetamodels - properties to be locked
      Returns:
      the option
    • wait

      static ForUpdateOption wait(int seconds, PropertyMetamodel<?>... propertyMetamodels)
      Indicate that the option append the FOR UPDATE ... WAIT clause.
      Parameters:
      seconds - wait time in seconds
      propertyMetamodels - properties to be locked
      Returns:
      the option
    • accept

      void accept(ForUpdateOption.Visitor visitor)
      Accepts a visitor.
      Parameters:
      visitor - a visitor.