public static enum BatchUpdate.Order extends java.lang.Enum<BatchUpdate.Order>
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 BatchUpdate.Order |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatchUpdate.Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchUpdate.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 BatchUpdate.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 BatchUpdate.Order[] values()
for (BatchUpdate.Order c : BatchUpdate.Order.values()) System.out.println(c);
public static BatchUpdate.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