|
||||||||||
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 commited 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()
Transaction
Transaction.finish()
is called. Once
this method has been invoked, it doesn't matter how many times
Transaction.success()
is invoked -- the transaction will still be rolled
back.
failure
in interface Transaction
public void success()
Transaction
Transaction.finish()
unless Transaction.failure()
has or will be invoked before then.
success
in interface Transaction
public void finish()
Transaction
Transaction.success()
or Transaction.failure()
has been previously invoked.
finish
in interface Transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |