public class DefaultTransactionManager extends Object implements TransactionManager
| Constructor and Description |
|---|
DefaultTransactionManager() |
DefaultTransactionManager(Driver driver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCommit() |
boolean |
canRollback() |
void |
commit(Transaction tx)
Commits the specified TRANSACTION_THREAD_LOCAL.
|
Transaction |
getCurrentTransaction()
Returns the current TRANSACTION_THREAD_LOCAL for this thread, or null if none exists
|
boolean |
isExtended(Transaction tx) |
Transaction |
openTransaction()
Opens a new TRANSACTION_THREAD_LOCAL against a database instance.
|
void |
rollback(Transaction transaction)
Rolls back the specified TRANSACTION_THREAD_LOCAL.
|
public DefaultTransactionManager()
public DefaultTransactionManager(Driver driver)
public Transaction openTransaction()
openTransaction in interface TransactionManagerTransactionpublic void rollback(Transaction transaction)
rollback in interface TransactionManagertransaction - the TRANSACTION_THREAD_LOCAL to rollbackpublic void commit(Transaction tx)
commit in interface TransactionManagertx - the TRANSACTION_THREAD_LOCAL to commitpublic Transaction getCurrentTransaction()
getCurrentTransaction in interface TransactionManagerpublic boolean isExtended(Transaction tx)
isExtended in interface TransactionManagerpublic boolean canCommit()
canCommit in interface TransactionManagerpublic boolean canRollback()
canRollback in interface TransactionManagerCopyright © 2016 Neo Technology, Inc.. All rights reserved.