
public class OClassIndexManager extends ODocumentHookAbstract implements ORecordHook.Scoped, OOrientStartupListener, OOrientShutdownListener
ORecordHook.DISTRIBUTED_EXECUTION_MODE, ORecordHook.HOOK_POSITION, ORecordHook.RESULT, ORecordHook.SCOPE, ORecordHook.Scoped, ORecordHook.TYPEdatabase| Constructor and Description |
|---|
OClassIndexManager(ODatabaseDocument database) |
| Modifier and Type | Method and Description |
|---|---|
ORecordHook.DISTRIBUTED_EXECUTION_MODE |
getDistributedExecutionMode() |
ORecordHook.SCOPE[] |
getScopes()
Returns the array of scopes this hook interested in.
|
void |
onRecordAfterCreate(ODocument document)
It's called just after the document is created.
|
void |
onRecordAfterDelete(ODocument iDocument)
It's called just after the document is deleted.
|
void |
onRecordAfterUpdate(ODocument iDocument)
It's called just after the document is updated.
|
ORecordHook.RESULT |
onRecordBeforeCreate(ODocument document)
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 |
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 |
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.
|
void |
onShutdown() |
void |
onStartup() |
protected void |
putInIndex(OIndex<?> index,
Object key,
OIdentifiable value) |
protected void |
removeFromIndex(OIndex<?> index,
Object key,
OIdentifiable value) |
filterBySchemaClass, getExcludeClasses, getIncludeClasses, onRecordAfterRead, onRecordBeforeRead, onRecordReadFailed, onRecordReadReplicated, onTrigger, onUnregister, setExcludeClasses, setIncludeClassesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonTrigger, onUnregisterpublic OClassIndexManager(ODatabaseDocument database)
public ORecordHook.SCOPE[] getScopes()
ORecordHook.ScopedReturns the array of scopes this hook interested in. By default, all available scopes are returned, implement/override this method to limit the scopes this hook may participate to lower the number of useless invocations of this hook.
Limiting the hook to proper scopes may give huge performance boost, especially if the hook
ORecordHook.onTrigger(TYPE, ORecord) dispatcher implementation is heavy. In extreme cases, you may override the ORecordHook.onTrigger(TYPE, ORecord) to act directly on event ORecordHook.TYPE and exit early, scopes are just a more handy
alternative to this.
getScopes in interface ORecordHook.ScopedORecordHook.SCOPEpublic void onShutdown()
onShutdown in interface OOrientShutdownListenerpublic void onStartup()
onStartup in interface OOrientStartupListenerpublic ORecordHook.DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode()
getDistributedExecutionMode in interface ORecordHookpublic ORecordHook.RESULT onRecordBeforeCreate(ODocument document)
ODocumentHookAbstractonRecordBeforeCreate in class ODocumentHookAbstractdocument - The document to createpublic void onRecordAfterCreate(ODocument document)
ODocumentHookAbstractonRecordAfterCreate in class ODocumentHookAbstractdocument - The document is going to be createdpublic void onRecordCreateFailed(ODocument iDocument)
ODocumentHookAbstractonRecordCreateFailed in class ODocumentHookAbstractiDocument - The document just createdpublic void onRecordCreateReplicated(ODocument iDocument)
ODocumentHookAbstractonRecordCreateReplicated in class ODocumentHookAbstractiDocument - The document just createdpublic ORecordHook.RESULT onRecordBeforeUpdate(ODocument iDocument)
ODocumentHookAbstractonRecordBeforeUpdate in class ODocumentHookAbstractiDocument - The document to updatepublic void onRecordAfterUpdate(ODocument iDocument)
ODocumentHookAbstractonRecordAfterUpdate in class ODocumentHookAbstractiDocument - The document just updatedpublic void onRecordUpdateFailed(ODocument iDocument)
ODocumentHookAbstractonRecordUpdateFailed in class ODocumentHookAbstractiDocument - The document is going to be updatedpublic void onRecordUpdateReplicated(ODocument iDocument)
ODocumentHookAbstractonRecordUpdateReplicated in class ODocumentHookAbstractiDocument - The document is going to be updatedpublic ORecordHook.RESULT onRecordBeforeDelete(ODocument iDocument)
ODocumentHookAbstractonRecordBeforeDelete in class ODocumentHookAbstractiDocument - The document to deletepublic void onRecordAfterDelete(ODocument iDocument)
ODocumentHookAbstractonRecordAfterDelete in class ODocumentHookAbstractiDocument - The document just deletedpublic void onRecordDeleteFailed(ODocument iDocument)
ODocumentHookAbstractonRecordDeleteFailed in class ODocumentHookAbstractiDocument - The document is going to be deletedpublic void onRecordDeleteReplicated(ODocument iDocument)
ODocumentHookAbstractonRecordDeleteReplicated in class ODocumentHookAbstractiDocument - The document is going to be deletedpublic void onRecordFinalizeUpdate(ODocument document)
onRecordFinalizeUpdate in class ODocumentHookAbstractpublic void onRecordFinalizeCreation(ODocument document)
onRecordFinalizeCreation in class ODocumentHookAbstractpublic void onRecordFinalizeDeletion(ODocument document)
onRecordFinalizeDeletion in class ODocumentHookAbstractprotected void putInIndex(OIndex<?> index, Object key, OIdentifiable value)
protected void removeFromIndex(OIndex<?> index, Object key, OIdentifiable value)
Copyright © 2009–2025 OrientDB. All rights reserved.