Enum DataMethod.OperationType
- java.lang.Object
-
- java.lang.Enum<DataMethod.OperationType>
-
- io.micronaut.data.intercept.annotation.DataMethod.OperationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataMethod.OperationType>
- Enclosing class:
- DataMethod
public static enum DataMethod.OperationType extends java.lang.Enum<DataMethod.OperationType>
Describes the operation type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataMethod.OperationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataMethod.OperationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY
public static final DataMethod.OperationType QUERY
A query operation.
-
COUNT
public static final DataMethod.OperationType COUNT
A count operation.
-
EXISTS
public static final DataMethod.OperationType EXISTS
A exists operation.
-
UPDATE
public static final DataMethod.OperationType UPDATE
An update operation.
-
DELETE
public static final DataMethod.OperationType DELETE
A delete operation.
-
INSERT
public static final DataMethod.OperationType INSERT
An insert operation.
-
-
Method Detail
-
values
public static DataMethod.OperationType[] 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 (DataMethod.OperationType c : DataMethod.OperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataMethod.OperationType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-