
public static enum ORecordHook.SCOPE extends Enum<ORecordHook.SCOPE>
Basically, each scope defines some subset of ORecordHook.TYPE, this limits the set
of events the hook interested in and lowers the number of useless hook invocations.
ORecordHook.getScopes()| Enum Constant and Description |
|---|
CREATE
The create scope, includes:
ORecordHook.TYPE.BEFORE_CREATE, ORecordHook.TYPE.AFTER_CREATE, ORecordHook.TYPE.FINALIZE_CREATION, ORecordHook.TYPE.CREATE_REPLICATED and ORecordHook.TYPE.CREATE_FAILED. |
DELETE
The delete scope, includes:
ORecordHook.TYPE.BEFORE_DELETE, ORecordHook.TYPE.AFTER_DELETE, ORecordHook.TYPE.DELETE_REPLICATED, ORecordHook.TYPE.DELETE_FAILED and ORecordHook.TYPE.FINALIZE_DELETION. |
READ
The read scope, includes:
ORecordHook.TYPE.BEFORE_READ, ORecordHook.TYPE.AFTER_READ, ORecordHook.TYPE.READ_REPLICATED and ORecordHook.TYPE.READ_FAILED. |
UPDATE
The update scope, includes:
ORecordHook.TYPE.BEFORE_UPDATE, ORecordHook.TYPE.AFTER_UPDATE, ORecordHook.TYPE.FINALIZE_UPDATE, ORecordHook.TYPE.UPDATE_REPLICATED and ORecordHook.TYPE.UPDATE_FAILED. |
| Modifier and Type | Method and Description |
|---|---|
static ORecordHook.SCOPE |
typeToScope(ORecordHook.TYPE type)
Maps the
ORecordHook.TYPE to ORecordHook.SCOPE. |
static ORecordHook.SCOPE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ORecordHook.SCOPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ORecordHook.SCOPE CREATE
ORecordHook.TYPE.BEFORE_CREATE, ORecordHook.TYPE.AFTER_CREATE, ORecordHook.TYPE.FINALIZE_CREATION, ORecordHook.TYPE.CREATE_REPLICATED and ORecordHook.TYPE.CREATE_FAILED.public static final ORecordHook.SCOPE READ
ORecordHook.TYPE.BEFORE_READ, ORecordHook.TYPE.AFTER_READ, ORecordHook.TYPE.READ_REPLICATED and ORecordHook.TYPE.READ_FAILED.public static final ORecordHook.SCOPE UPDATE
ORecordHook.TYPE.BEFORE_UPDATE, ORecordHook.TYPE.AFTER_UPDATE, ORecordHook.TYPE.FINALIZE_UPDATE, ORecordHook.TYPE.UPDATE_REPLICATED and ORecordHook.TYPE.UPDATE_FAILED.public static final ORecordHook.SCOPE DELETE
ORecordHook.TYPE.BEFORE_DELETE, ORecordHook.TYPE.AFTER_DELETE, ORecordHook.TYPE.DELETE_REPLICATED, ORecordHook.TYPE.DELETE_FAILED and ORecordHook.TYPE.FINALIZE_DELETION.public static ORecordHook.SCOPE[] values()
for (ORecordHook.SCOPE c : ORecordHook.SCOPE.values()) System.out.println(c);
public static ORecordHook.SCOPE valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ORecordHook.SCOPE typeToScope(ORecordHook.TYPE type)
ORecordHook.TYPE to ORecordHook.SCOPE.type - the hook type to map.Copyright © 2009–2025 OrientDB. All rights reserved.