You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions, written in SQL, Javascript or any language supported by OrientDB and JVM
Java static methods
There isn't any mention of how a dynamic hook can call a java static method.
Delete hook
A section should be added describing how to delete a hook. For example:
To delete a hook, set the event value to null
e.g. ALTER CLASS Invoice CUSTOM onAfterCreate=null
Variables available inside the hook
Add a description for all of the variables that are provided inside of a hook.
For example:
In a javascript hook, a var called "doc" is provided that represents the current document.
Describing a few common use cases would be helpful such
Retrieving old vs new values of a doc
Getting the correct OrientBaseGraph from the document
For example
var db = doc.getDatabase();
var orientBaseGraph =(db.getTransaction().isActive())
?new com.tinkerpop.blueprints.impls.orient.OrientGraph(db)
:new com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx(db);
The text was updated successfully, but these errors were encountered:
odbuser2
changed the title
Dynamic Hook calling java static methods
Dynamic Hook docs missing critical information
Jun 13, 2016
The following page is missing critical information:
http://orientdb.com/docs/last/Dynamic-Hooks.html
Java static methods
Delete hook
A section should be added describing how to delete a hook. For example:
Variables available inside the hook
Add a description for all of the variables that are provided inside of a hook.
For example:
Describing a few common use cases would be helpful such
For example
The text was updated successfully, but these errors were encountered: