Enum Class Operation
- All Implemented Interfaces:
Serializable,Comparable<Operation>,Constable
Identifies the kind of action a persistence-layer management class is currently
performing on an element (Context, Type, or Instance), independently of which
concrete class or collection is involved. Database-agnostic and carries no
OrientDB-specific concept; each constant also reports whether it is a read-only
(
isSafe()) operation.- Author:
- Luca Frosini (ISTI - CNR)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe add to context/share operation.The database element creation operation.The deletion operation.The check existence operation (read-only).The metadata retrieval operation (read-only).The graph traversal query operation (read-only).The read operation (read-only).The remove from context/unshare operation.The update operation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSafe()Returns whether this is a read-only/safe operation.static OperationReturns the enum constant of this class with the specified name.static Operation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
The database element creation operation. -
EXISTS
The check existence operation (read-only). -
READ
The read operation (read-only). -
UPDATE
The update operation. -
DELETE
The deletion operation. -
ADD_TO_CONTEXT
The add to context/share operation. -
REMOVE_FROM_CONTEXT
The remove from context/unshare operation. -
QUERY
The graph traversal query operation (read-only). -
GET_METADATA
The metadata retrieval operation (read-only).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isSafe
public boolean isSafe()Returns whether this is a read-only/safe operation.- Returns:
trueif this operation is safe/read-only,falseotherwise
-