El 22/05/11 13:38, Mattias Persson escribió:
> A transaction is typically done like this:
>
>Transaction tx = graphDb.beginTx();
>try
>{
>// Do stuff
>tx.success();
>}
>finally
>{
>tx.finish();
>}
>
> If you don't want that transaction committed j
A transaction is typically done like this:
Transaction tx = graphDb.beginTx();
try
{
// Do stuff
tx.success();
}
finally
{
tx.finish();
}
If you don't want that transaction committed just throw an exception in the
"Do stuff" block, or don't call tx.success(). You c
Hello
This might help you:
http://api.neo4j.org/current/org/neo4j/graphdb/Transaction.html
And I'm not sure if this thread is still valid as reference:
http://www.mail-archive.com/user@lists.neo4j.org/msg03716.html
-
Charles Edward Bedón Cortázar
ITIL Founda
hello list
how to make rolledback a transaction
thanks
cheers.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
4 matches
Mail list logo