I want  to create a Hook to handler create delete update  of command 
execution .

for example if i call  graph.command(OSqlCommand("create edge 
has_notification from .. to ... ").execute(); 
do some operations  ( something like listener for has_notifcation) 
i tried this example  connecting my local db server  like on the example.. 

but couldnt register the hook to the server .. 


public class HookTest extends ORecordHookAbstract { public saveProfile(){ 
ODatabaseObjectTx database = new ODatabaseObjectTx("remote:localhost/demo"); 
database.open("writer", "writer");
 // REGISTER MYSELF AS HOOK
 database.registerHook(this); 

//didnt try this will work or not ...
 p = new Profile("Luca"); p.setAge(10000); database.save(p); 
// but i want something like this 


 database.registerHook(this); 
graph.command(OSqlCommand("create edge has_notification from .. to ... ").
execute();

 database.unRegisterHook(this); 

 } }


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to