Class UpdateOp.Condition
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.UpdateOp.Condition
- Enclosing class:
- UpdateOp
A condition to check before an update is applied.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UpdateOp.Condition
Check if a map entry exists in a map.static final UpdateOp.Condition
Check if a map entry is missing in a map.final UpdateOp.Condition.Type
The condition type.final Object
The value. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateOp.Condition
newEqualsCondition
(@Nullable Object value) Creates a new equals condition with the given value.static UpdateOp.Condition
newNotEqualsCondition
(@Nullable Object value) Creates a new notEquals condition with the given value.toString()
-
Field Details
-
EXISTS
Check if a map entry exists in a map. -
MISSING
Check if a map entry is missing in a map. -
type
The condition type. -
value
The value.
-
-
Method Details
-
newEqualsCondition
Creates a new equals condition with the given value.- Parameters:
value
- the value to compare to.- Returns:
- the equals condition.
-
newNotEqualsCondition
Creates a new notEquals condition with the given value.- Parameters:
value
- the value to compare to.- Returns:
- the notEquals condition.
-
toString
-