- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic interfacestatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ForUpdateOption.Visitor visitor) Accepts a visitor.static ForUpdateOptionbasic(PropertyMetamodel<?>... propertyMetamodels) Indicate that the option append the FOR UPDATE clause.static ForUpdateOptionnone()Indicates that the option does nothing.static ForUpdateOptionnoWait(PropertyMetamodel<?>... propertyMetamodels) Indicate that the option append the FOR UPDATE ...static ForUpdateOptionwait(int seconds, PropertyMetamodel<?>... propertyMetamodels) Indicate that the option append the FOR UPDATE ...
-
Method Details
-
none
Indicates that the option does nothing.- Returns:
- the option
-
basic
Indicate that the option append the FOR UPDATE clause.- Parameters:
propertyMetamodels- properties to be locked- Returns:
- the option
-
noWait
Indicate that the option append the FOR UPDATE ... NO WAIT clause.- Parameters:
propertyMetamodels- properties to be locked- Returns:
- the option
-
wait
Indicate that the option append the FOR UPDATE ... WAIT clause.- Parameters:
seconds- wait time in secondspropertyMetamodels- properties to be locked- Returns:
- the option
-
accept
Accepts a visitor.- Parameters:
visitor- a visitor.
-