I have an ODatabase object (database), and I want to do something using the
GraphAPI. Is this a good approach? Is there something better?
OrientGraph orientGraph = new OrientGraph(database.getURL());
orientGraph.getRawGraph().activateOnCurrentThread();
Vertex vert = orientGraph.addVertex();
...
orientGraph.commit();
// return 'database' to active
database.activateOnCurrentThread();
--
---
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.