public abstract class ODocumentHookAbstract extends Object implements ORecordHook
ORecordHook
ORecordHook.DISTRIBUTED_EXECUTION_MODE, ORecordHook.HOOK_POSITION, ORecordHook.RESULT, ORecordHook.SCOPE, ORecordHook.TYPE
Modifier and Type | Field and Description |
---|---|
protected ODatabaseDocument |
database |
Constructor and Description |
---|
ODocumentHookAbstract()
Deprecated.
|
ODocumentHookAbstract(ODatabaseDocument database) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
filterBySchemaClass(ODocument iDocument) |
String[] |
getExcludeClasses() |
String[] |
getIncludeClasses() |
void |
onRecordAfterCreate(ODocument iDocument)
It's called just after the document is created.
|
void |
onRecordAfterDelete(ODocument iDocument)
It's called just after the document is deleted.
|
void |
onRecordAfterRead(ODocument iDocument)
It's called just after the document is read.
|
void |
onRecordAfterUpdate(ODocument iDocument)
It's called just after the document is updated.
|
ORecordHook.RESULT |
onRecordBeforeCreate(ODocument iDocument)
It's called just before to create the new document.
|
ORecordHook.RESULT |
onRecordBeforeDelete(ODocument iDocument)
It's called just before to delete the document.
|
ORecordHook.RESULT |
onRecordBeforeRead(ODocument iDocument)
It's called just before to read the document.
|
ORecordHook.RESULT |
onRecordBeforeUpdate(ODocument iDocument)
It's called just before to update the document.
|
void |
onRecordCreateFailed(ODocument iDocument)
It's called just after the document creation was failed.
|
void |
onRecordCreateReplicated(ODocument iDocument)
It's called just after the document creation was replicated on another node.
|
void |
onRecordDeleteFailed(ODocument iDocument)
It's called just after the document deletion was failed.
|
void |
onRecordDeleteReplicated(ODocument iDocument)
It's called just after the document deletion was replicated.
|
void |
onRecordFinalizeCreation(ODocument document) |
void |
onRecordFinalizeDeletion(ODocument document) |
void |
onRecordFinalizeUpdate(ODocument document) |
void |
onRecordReadFailed(ODocument iDocument)
It's called just after the document read was failed.
|
void |
onRecordReadReplicated(ODocument iDocument)
It's called just after the document read was replicated on another node.
|
void |
onRecordUpdateFailed(ODocument iDocument)
It's called just after the document updated was failed.
|
void |
onRecordUpdateReplicated(ODocument iDocument)
It's called just after the document updated was replicated.
|
ORecordHook.RESULT |
onTrigger(ORecordHook.TYPE iType,
ORecord iRecord) |
void |
onUnregister() |
ODocumentHookAbstract |
setExcludeClasses(String... excludeClasses) |
ODocumentHookAbstract |
setIncludeClasses(String... includeClasses) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistributedExecutionMode, getScopes
protected ODatabaseDocument database
@Deprecated public ODocumentHookAbstract()
public ODocumentHookAbstract(ODatabaseDocument database)
public void onUnregister()
onUnregister
in interface ORecordHook
public ORecordHook.RESULT onRecordBeforeCreate(ODocument iDocument)
iDocument
- The document to createpublic void onRecordAfterCreate(ODocument iDocument)
iDocument
- The document is going to be createdpublic void onRecordCreateFailed(ODocument iDocument)
iDocument
- The document just createdpublic void onRecordCreateReplicated(ODocument iDocument)
iDocument
- The document just createdpublic ORecordHook.RESULT onRecordBeforeRead(ODocument iDocument)
iDocument
- The document to readpublic void onRecordAfterRead(ODocument iDocument)
iDocument
- The document just readpublic void onRecordReadFailed(ODocument iDocument)
iDocument
- The document just createdpublic void onRecordReadReplicated(ODocument iDocument)
iDocument
- The document just createdpublic ORecordHook.RESULT onRecordBeforeUpdate(ODocument iDocument)
iDocument
- The document to updatepublic void onRecordAfterUpdate(ODocument iDocument)
iDocument
- The document just updatedpublic void onRecordUpdateFailed(ODocument iDocument)
iDocument
- The document is going to be updatedpublic void onRecordUpdateReplicated(ODocument iDocument)
iDocument
- The document is going to be updatedpublic ORecordHook.RESULT onRecordBeforeDelete(ODocument iDocument)
iDocument
- The document to deletepublic void onRecordAfterDelete(ODocument iDocument)
iDocument
- The document just deletedpublic void onRecordDeleteFailed(ODocument iDocument)
iDocument
- The document is going to be deletedpublic void onRecordDeleteReplicated(ODocument iDocument)
iDocument
- The document is going to be deletedpublic void onRecordFinalizeUpdate(ODocument document)
public void onRecordFinalizeCreation(ODocument document)
public void onRecordFinalizeDeletion(ODocument document)
public ORecordHook.RESULT onTrigger(ORecordHook.TYPE iType, ORecord iRecord)
onTrigger
in interface ORecordHook
public String[] getIncludeClasses()
public ODocumentHookAbstract setIncludeClasses(String... includeClasses)
public String[] getExcludeClasses()
public ODocumentHookAbstract setExcludeClasses(String... excludeClasses)
protected boolean filterBySchemaClass(ODocument iDocument)
Copyright © 2009–2020 OrientDB. All rights reserved.