public enum DbUnavailableState extends Enum<DbUnavailableState> implements HasName
| Enum Constant and Description |
|---|
CONNECTION_FAILURE
The database server connection failure (for any reason).
|
INITIALIZING
The database is being initialized.
|
NONE
The none.
|
OPERATION_ABORTED
The database operation aborted (for any reason: Timeout, inconsistent transaction, concurrency, cache busy, etc.
|
UNKNOWN_DATABASE
The unknown database.
|
| Modifier and Type | Method and Description |
|---|---|
static DbUnavailableState |
findOrDefault(String name) |
int |
getCode() |
String |
getName() |
static DbUnavailableState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DbUnavailableState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DbUnavailableState NONE
public static final DbUnavailableState CONNECTION_FAILURE
public static final DbUnavailableState UNKNOWN_DATABASE
public static final DbUnavailableState INITIALIZING
public static final DbUnavailableState OPERATION_ABORTED
public static DbUnavailableState[] values()
for (DbUnavailableState c : DbUnavailableState.values()) System.out.println(c);
public static DbUnavailableState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static DbUnavailableState findOrDefault(String name)
Copyright © 2023. All rights reserved.