Package adams.event
Enum DatabaseConnectionChangeEvent.EventType
- java.lang.Object
-
- java.lang.Enum<DatabaseConnectionChangeEvent.EventType>
-
- adams.event.DatabaseConnectionChangeEvent.EventType
-
- All Implemented Interfaces:
Serializable
,Comparable<DatabaseConnectionChangeEvent.EventType>
- Enclosing class:
- DatabaseConnectionChangeEvent
public static enum DatabaseConnectionChangeEvent.EventType extends Enum<DatabaseConnectionChangeEvent.EventType>
Enum for the type of event.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECT
a connect happened.DISCONNECT
a disconnect happened.GENERAL
a general notification.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatabaseConnectionChangeEvent.EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatabaseConnectionChangeEvent.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL
public static final DatabaseConnectionChangeEvent.EventType GENERAL
a general notification.
-
CONNECT
public static final DatabaseConnectionChangeEvent.EventType CONNECT
a connect happened.
-
DISCONNECT
public static final DatabaseConnectionChangeEvent.EventType DISCONNECT
a disconnect happened.
-
-
Method Detail
-
values
public static DatabaseConnectionChangeEvent.EventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseConnectionChangeEvent.EventType c : DatabaseConnectionChangeEvent.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseConnectionChangeEvent.EventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-