Class UpdateUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.UpdateUtils
-
public class UpdateUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description UpdateUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapplyChanges(@NotNull Document doc, @NotNull UpdateOp update)Apply the changes to the in-memory document.static voidassertUnconditional(@NotNull UpdateOp up)Ensures that the givenUpdateOpis unconditionalstatic booleancheckConditions(@NotNull Document doc, @NotNull Map<UpdateOp.Key,UpdateOp.Condition> conditions)
-
-
-
Method Detail
-
applyChanges
public static void applyChanges(@NotNull @NotNull Document doc, @NotNull @NotNull UpdateOp update)Apply the changes to the in-memory document.- Parameters:
doc- the target document.update- the changes to apply.
-
checkConditions
public static boolean checkConditions(@NotNull @NotNull Document doc, @NotNull @NotNull Map<UpdateOp.Key,UpdateOp.Condition> conditions)
-
assertUnconditional
public static void assertUnconditional(@NotNull @NotNull UpdateOp up)Ensures that the givenUpdateOpis unconditional- Parameters:
up- the update operation- Throws:
IllegalArgumentException- when the operations is conditional
-
-