Package com.helger.dao
Enum EDAOActionType
- java.lang.Object
-
- java.lang.Enum<EDAOActionType>
-
- com.helger.dao.EDAOActionType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EDAOActionType>
public enum EDAOActionType extends Enum<EDAOActionType> implements com.helger.commons.id.IHasID<String>
Enumeration with the different actions that can occur in a DAO. This is used in the WAL DAO.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EDAOActionTypegetFromIDOrNull(String sID)static EDAOActionTypegetFromIDOrThrow(String sID)StringgetID()static EDAOActionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EDAOActionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final EDAOActionType CREATE
-
UPDATE
public static final EDAOActionType UPDATE
-
DELETE
public static final EDAOActionType DELETE
-
-
Method Detail
-
values
public static EDAOActionType[] 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 (EDAOActionType c : EDAOActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDAOActionType 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static EDAOActionType getFromIDOrNull(@Nullable String sID)
-
getFromIDOrThrow
@Nullable public static EDAOActionType getFromIDOrThrow(@Nullable String sID)
-
-