|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.PlaceboTransaction
public class PlaceboTransaction
| Constructor Summary | |
|---|---|
PlaceboTransaction(TransactionManager transactionManager)
|
|
| Method Summary | |
|---|---|
void |
failure()
Marks this transaction as failed, which means that it will unconditionally be rolled back when Transaction.finish() is called. |
void |
finish()
Commits or marks this transaction for rollback, depending on whether Transaction.success() or Transaction.failure() has been previously invoked. |
void |
success()
Marks this transaction as successful, which means that it will be committed upon invocation of Transaction.finish() unless Transaction.failure()
has or will be invoked before then. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlaceboTransaction(TransactionManager transactionManager)
| Method Detail |
|---|
public void failure()
TransactionTransaction.finish() is called. Once
this method has been invoked, it doesn't matter if
Transaction.success() is invoked afterwards -- the transaction will still be
rolled back.
failure in interface Transactionpublic void success()
TransactionTransaction.finish() unless Transaction.failure()
has or will be invoked before then.
success in interface Transactionpublic void finish()
TransactionTransaction.success() or Transaction.failure() has been previously invoked.
finish in interface Transaction
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||