public static enum DatabaseConnectionsListener.ConnectionType extends java.lang.Enum<DatabaseConnectionsListener.ConnectionType>
| Enum Constant and Description |
|---|
CONNECT
Normal connect of a named connection for the first time.
|
RECONNECT
Reconnect of a named connection when it is found disconnected and a reconnect is requested.
|
UNIQUE
Connection of a unique (standalone) connection.
|
| Modifier and Type | Method and Description |
|---|---|
static DatabaseConnectionsListener.ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseConnectionsListener.ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final DatabaseConnectionsListener.ConnectionType CONNECT
public static final DatabaseConnectionsListener.ConnectionType RECONNECT
public static final DatabaseConnectionsListener.ConnectionType UNIQUE
DatabaseConnections.getUniqueConnection(String) or a non-named connection created using DatabaseConnections.getConnection(java.util.Properties).public static DatabaseConnectionsListener.ConnectionType[] values()
for (DatabaseConnectionsListener.ConnectionType c : DatabaseConnectionsListener.ConnectionType.values())
System.out.println(c);
public static DatabaseConnectionsListener.ConnectionType 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