public enum SessionAction extends java.lang.Enum<SessionAction> implements EnumClass<java.lang.Integer>
id
- corresponding value stored in the databaseEnum Constant and Description |
---|
EXPIRATION |
LOGIN |
LOGOUT |
SUBSTITUTION |
TERMINATION |
Modifier and Type | Method and Description |
---|---|
static SessionAction |
fromId(java.lang.Integer id) |
java.lang.Integer |
getId() |
static SessionAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SessionAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionAction LOGIN
public static final SessionAction LOGOUT
public static final SessionAction EXPIRATION
public static final SessionAction TERMINATION
public static final SessionAction SUBSTITUTION
public static SessionAction[] values()
for (SessionAction c : SessionAction.values()) System.out.println(c);
public static SessionAction 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 nullpublic java.lang.Integer getId()
@Nullable public static SessionAction fromId(java.lang.Integer id)