public enum TableAction extends java.lang.Enum<TableAction>
Modifier and Type | Method and Description |
---|---|
static TableAction |
find(int id)
Find the action for the given id.
|
static java.util.EnumSet<TableAction> |
findAll(int id)
Returns all actions that have been encoded into the given id.
|
static int |
getAll(java.util.EnumSet<TableAction> actions)
Returns all given actions as an encoded int.
|
int |
getID()
Returns the id for this action.
|
static TableAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TableAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TableAction CREATE
public static final TableAction UPDATE
public static final TableAction DELETE
public static TableAction[] values()
for (TableAction c : TableAction.values()) System.out.println(c);
public static TableAction 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 int getID()
public static TableAction find(int id)
id
- wanted idpublic static java.util.EnumSet<TableAction> findAll(int id)
id
- encoded idgetAll(java.util.EnumSet)
public static int getAll(java.util.EnumSet<TableAction> actions)
actions
- actions to encodefindAll(int)
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.