Re: [Neo4j] how to make rolledback transaction

2011-05-22 Thread Jose Angel Inda Herrera
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

Re: [Neo4j] how to make rolledback transaction

2011-05-22 Thread Mattias Persson
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

Re: [Neo4j] how to make rolledback transaction

2011-05-21 Thread Charles Bedon
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

[Neo4j] how to make rolledback transaction

2011-05-21 Thread Jose Angel Inda Herrera
hello list how to make rolledback a transaction thanks cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user