public abstract class RelationHook
extends com.orientechnologies.orient.core.hook.ODocumentHookAbstract
implements com.orientechnologies.orient.core.db.ODatabaseLifecycleListener
com.orientechnologies.orient.core.db.ODatabaseLifecycleListener.PRIORITYcom.orientechnologies.orient.core.hook.ORecordHook.DISTRIBUTED_EXECUTION_MODE, com.orientechnologies.orient.core.hook.ORecordHook.HOOK_POSITION, com.orientechnologies.orient.core.hook.ORecordHook.RESULT, com.orientechnologies.orient.core.hook.ORecordHook.SCOPE, com.orientechnologies.orient.core.hook.ORecordHook.TYPE| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.informationsystem.model.reference.properties.PropagationConstraint |
propagationConstraint |
protected String |
relationType |
| Constructor and Description |
|---|
RelationHook(com.orientechnologies.orient.core.db.document.ODatabaseDocument database,
String relationType,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint) |
RelationHook(String relationType,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint) |
| Modifier and Type | Method and Description |
|---|---|
protected com.orientechnologies.orient.core.hook.ORecordHook.RESULT |
checkPropagationConstraint(com.orientechnologies.orient.core.record.impl.ODocument iDocument) |
protected <T extends Enum> |
fixConstraint(com.orientechnologies.orient.core.hook.ORecordHook.RESULT result,
com.orientechnologies.orient.core.record.impl.ODocument oDocument,
String property,
Class<T> clz,
T enumValue) |
com.orientechnologies.orient.core.hook.ORecordHook.DISTRIBUTED_EXECUTION_MODE |
getDistributedExecutionMode() |
com.orientechnologies.orient.core.db.ODatabaseLifecycleListener.PRIORITY |
getPriority() |
protected void |
init(String relationType) |
void |
onClose(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase) |
void |
onCreate(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase) |
void |
onCreateClass(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase,
com.orientechnologies.orient.core.metadata.schema.OClass iClass) |
void |
onDrop(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase) |
void |
onDropClass(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase,
com.orientechnologies.orient.core.metadata.schema.OClass iClass) |
void |
onLocalNodeConfigurationRequest(com.orientechnologies.orient.core.record.impl.ODocument iConfiguration) |
void |
onOpen(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase) |
com.orientechnologies.orient.core.hook.ORecordHook.RESULT |
onRecordBeforeCreate(com.orientechnologies.orient.core.record.impl.ODocument iDocument) |
com.orientechnologies.orient.core.hook.ORecordHook.RESULT |
onRecordBeforeUpdate(com.orientechnologies.orient.core.record.impl.ODocument iDocument) |
filterBySchemaClass, getExcludeClasses, getIncludeClasses, onRecordAfterCreate, onRecordAfterDelete, onRecordAfterRead, onRecordAfterUpdate, onRecordBeforeDelete, onRecordBeforeRead, onRecordCreateFailed, onRecordCreateReplicated, onRecordDeleteFailed, onRecordDeleteReplicated, onRecordFinalizeCreation, onRecordFinalizeDeletion, onRecordFinalizeUpdate, onRecordReadFailed, onRecordReadReplicated, onRecordUpdateFailed, onRecordUpdateReplicated, onTrigger, onUnregister, setExcludeClasses, setIncludeClassesprotected final String relationType
protected final org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint
public RelationHook(String relationType, org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint)
public RelationHook(com.orientechnologies.orient.core.db.document.ODatabaseDocument database,
String relationType,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint)
protected void init(String relationType)
public com.orientechnologies.orient.core.hook.ORecordHook.DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode()
getDistributedExecutionMode in interface com.orientechnologies.orient.core.hook.ORecordHookprotected <T extends Enum> com.orientechnologies.orient.core.hook.ORecordHook.RESULT fixConstraint(com.orientechnologies.orient.core.hook.ORecordHook.RESULT result, com.orientechnologies.orient.core.record.impl.ODocument oDocument, String property, Class<T> clz, T enumValue)
protected com.orientechnologies.orient.core.hook.ORecordHook.RESULT checkPropagationConstraint(com.orientechnologies.orient.core.record.impl.ODocument iDocument)
public com.orientechnologies.orient.core.hook.ORecordHook.RESULT onRecordBeforeCreate(com.orientechnologies.orient.core.record.impl.ODocument iDocument)
onRecordBeforeCreate in class com.orientechnologies.orient.core.hook.ODocumentHookAbstractpublic com.orientechnologies.orient.core.hook.ORecordHook.RESULT onRecordBeforeUpdate(com.orientechnologies.orient.core.record.impl.ODocument iDocument)
onRecordBeforeUpdate in class com.orientechnologies.orient.core.hook.ODocumentHookAbstractpublic com.orientechnologies.orient.core.db.ODatabaseLifecycleListener.PRIORITY getPriority()
getPriority in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onCreate(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase)
onCreate in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onOpen(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase)
onOpen in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onClose(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase)
onClose in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onDrop(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase)
onDrop in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onCreateClass(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase,
com.orientechnologies.orient.core.metadata.schema.OClass iClass)
onCreateClass in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onDropClass(com.orientechnologies.orient.core.db.ODatabaseInternal iDatabase,
com.orientechnologies.orient.core.metadata.schema.OClass iClass)
onDropClass in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerpublic void onLocalNodeConfigurationRequest(com.orientechnologies.orient.core.record.impl.ODocument iConfiguration)
onLocalNodeConfigurationRequest in interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListenerCopyright © 2020. All Rights Reserved.