Class ODocumentHookAbstract
java.lang.Object
com.orientechnologies.orient.core.hook.ODocumentHookAbstract
- All Implemented Interfaces:
ORecordHook
Hook abstract class that calls separate methods for ODocument records.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.hook.ORecordHook
ORecordHook.DISTRIBUTED_EXECUTION_MODE, ORecordHook.HOOK_POSITION, ORecordHook.RESULT, ORecordHook.SCOPE, ORecordHook.TYPE -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfilterBySchemaClass(ODocument iDocument) String[]String[]voidonRecordAfterCreate(ODocument iDocument) It's called just after the document is created.voidonRecordAfterDelete(ODocument iDocument) It's called just after the document is deleted.voidonRecordAfterRead(ODocument iDocument) It's called just after the document is read.voidonRecordAfterUpdate(ODocument iDocument) It's called just after the document is updated.onRecordBeforeCreate(ODocument iDocument) It's called just before to create the new document.onRecordBeforeDelete(ODocument iDocument) It's called just before to delete the document.onRecordBeforeRead(ODocument iDocument) It's called just before to read the document.onRecordBeforeUpdate(ODocument iDocument) It's called just before to update the document.voidonRecordCreateFailed(ODocument iDocument) It's called just after the document creation was failed.voidonRecordCreateReplicated(ODocument iDocument) It's called just after the document creation was replicated on another node.voidonRecordDeleteFailed(ODocument iDocument) It's called just after the document deletion was failed.voidonRecordDeleteReplicated(ODocument iDocument) It's called just after the document deletion was replicated.voidonRecordFinalizeCreation(ODocument document) voidonRecordFinalizeDeletion(ODocument document) voidonRecordFinalizeUpdate(ODocument document) voidonRecordReadFailed(ODocument iDocument) It's called just after the document read was failed.voidonRecordReadReplicated(ODocument iDocument) It's called just after the document read was replicated on another node.voidonRecordUpdateFailed(ODocument iDocument) It's called just after the document updated was failed.voidonRecordUpdateReplicated(ODocument iDocument) It's called just after the document updated was replicated.onTrigger(ORecordHook.TYPE iType, ORecord iRecord) voidsetExcludeClasses(String... excludeClasses) setIncludeClasses(String... includeClasses) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.hook.ORecordHook
getDistributedExecutionMode, getScopes
-
Field Details
-
database
-
-
Constructor Details
-
ODocumentHookAbstract
Deprecated. -
ODocumentHookAbstract
-
-
Method Details
-
onUnregister
public void onUnregister()- Specified by:
onUnregisterin interfaceORecordHook
-
onRecordBeforeCreate
It's called just before to create the new document.- Parameters:
iDocument- The document to create- Returns:
- True if the document has been modified and a new marshalling is required, otherwise false
-
onRecordAfterCreate
It's called just after the document is created.- Parameters:
iDocument- The document is going to be created
-
onRecordCreateFailed
It's called just after the document creation was failed.- Parameters:
iDocument- The document just created
-
onRecordCreateReplicated
It's called just after the document creation was replicated on another node.- Parameters:
iDocument- The document just created
-
onRecordBeforeRead
It's called just before to read the document.- Parameters:
iDocument- The document to read- Returns:
- True if the document has been modified and a new marshalling is required, otherwise false
-
onRecordAfterRead
It's called just after the document is read.- Parameters:
iDocument- The document just read
-
onRecordReadFailed
It's called just after the document read was failed.- Parameters:
iDocument- The document just created
-
onRecordReadReplicated
It's called just after the document read was replicated on another node.- Parameters:
iDocument- The document just created
-
onRecordBeforeUpdate
It's called just before to update the document.- Parameters:
iDocument- The document to update- Returns:
- True if the document has been modified and a new marshalling is required, otherwise false
-
onRecordAfterUpdate
It's called just after the document is updated.- Parameters:
iDocument- The document just updated
-
onRecordUpdateFailed
It's called just after the document updated was failed.- Parameters:
iDocument- The document is going to be updated
-
onRecordUpdateReplicated
It's called just after the document updated was replicated.- Parameters:
iDocument- The document is going to be updated
-
onRecordBeforeDelete
It's called just before to delete the document.- Parameters:
iDocument- The document to delete- Returns:
- True if the document has been modified and a new marshalling is required, otherwise false
-
onRecordAfterDelete
It's called just after the document is deleted.- Parameters:
iDocument- The document just deleted
-
onRecordDeleteFailed
It's called just after the document deletion was failed.- Parameters:
iDocument- The document is going to be deleted
-
onRecordDeleteReplicated
It's called just after the document deletion was replicated.- Parameters:
iDocument- The document is going to be deleted
-
onRecordFinalizeUpdate
-
onRecordFinalizeCreation
-
onRecordFinalizeDeletion
-
onTrigger
- Specified by:
onTriggerin interfaceORecordHook
-
getIncludeClasses
-
setIncludeClasses
-
getExcludeClasses
-
setExcludeClasses
-
filterBySchemaClass
-