public enum Order extends java.lang.Enum<Order>
BatchUpdate
.Enum Constant and Description |
---|
DB_BEFORE_REPO
Update the database before touching the repository.
|
REPO_BEFORE_DB
Update the repository and execute all ref updates before touching the database.
|
Modifier and Type | Method and Description |
---|---|
static Order |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Order REPO_BEFORE_DB
The default and most common, as Gerrit does not behave well when a patch set has no corresponding ref in the repo.
public static final Order DB_BEFORE_REPO
Generally only used when deleting patch sets, which should be deleted first from the database (for the same reason as above.)
public static Order[] values()
for (Order c : Order.values()) System.out.println(c);
public static Order valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null