public class PlaceboTransaction extends TopLevelTransaction
| Constructor and Description |
|---|
PlaceboTransaction(org.neo4j.kernel.impl.transaction.AbstractTransactionManager transactionManager,
org.neo4j.kernel.impl.core.TransactionState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Commits or marks this transaction for rollback, depending on whether
Transaction.success() or Transaction.failure() has been previously invoked. |
acquireReadLock, acquireWriteLock, failure, finish, successpublic static final Lock NO_LOCK
public PlaceboTransaction(org.neo4j.kernel.impl.transaction.AbstractTransactionManager transactionManager, org.neo4j.kernel.impl.core.TransactionState state)
public void close()
TransactionTransaction.success() or Transaction.failure() has been previously invoked.
All ResourceIterables that where returned from operations executed inside this
transaction will be automatically closed by this method.
This method comes from AutoCloseable so that a Transaction can participate
in try-with-resource statements. It will not throw any declared exception, just like Transaction.finish().
Invoking Transaction.close() (which is unnecessary when in try-with-resource statement) or Transaction.finish()
has the exact same effect.close in interface AutoCloseableclose in interface Transactionclose in class TopLevelTransactionCopyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.