Re: [Neo4j] how to make rolledback transaction
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 Foundation Certified Open Source Network Inventory for the masses! http://kuwaiba.sourceforge.net | Follow Kuwaiba on Twitter Linux Registered User #38 Am Sun, 22 May 2011 00:47:10 -0500 Jose Angel Inda Herrera lt;jai...@estudiantes.uci.cugt; schrieb hello list how to make rolledback a transaction thanks cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] how to make rolledback transaction
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 can even use tx.failure() to mark a transaction to be rolled back in nested transactions, but rarely used. See more here: http://docs.neo4j.org/chunked/1.3/transactions-interaction.html http://wiki.neo4j.org/content/Transactions 2011/5/22 Jose Angel Inda Herrera jai...@estudiantes.uci.cu hello list how to make rolledback a transaction thanks cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] how to make rolledback transaction
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 just throw an exception in the Do stuff block, or don't call tx.success(). You can even use tx.failure() to mark a transaction to be rolled back in nested transactions, but rarely used. See more here: http://docs.neo4j.org/chunked/1.3/transactions-interaction.html http://wiki.neo4j.org/content/Transactions 2011/5/22 Jose Angel Inda Herrerajai...@estudiantes.uci.cu hello list how to make rolledback a transaction thanks cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user thanks mattias cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user