public interface BatchUpdateOp extends RepoOnlyOp
BatchUpdate operations that touch a change.
Each operation has updateChange(ChangeContext) called once the change is read in a
transaction. Ops are associated with updates via BatchUpdate.addOp(com.google.gerrit.reviewdb.client.Change.Id, BatchUpdateOp).
Usually, a single BatchUpdateOp instance is only associated with a single change, i.e.
addOp is only called once with that instance. This allows an instance to communicate
between phases by storing data in private fields.
| Modifier and Type | Method and Description |
|---|---|
default boolean |
updateChange(ChangeContext ctx)
Override this method to modify a change.
|
postUpdate, updateRepodefault boolean updateChange(ChangeContext ctx) throws Exception
ctx - contextException