public interface TransactionManager
| Modifier and Type | Method and Description |
|---|---|
void |
bookmark(String bookmark) |
boolean |
canCommit() |
boolean |
canRollback() |
void |
commit(Transaction transaction)
Commits the specified transaction.
|
Transaction |
getCurrentTransaction()
Returns the current transaction for this thread, or null if none exists
|
Transaction |
openTransaction()
Opens a new READ_WRITE transaction against a database instance.
|
Transaction |
openTransaction(Transaction.Type type,
Iterable<String> bookmarks)
Opens a new transaction of the specified type against a database instance.
|
void |
rollback(Transaction transaction)
Rolls back the specified transaction.
|
Transaction openTransaction()
Transaction openTransaction(Transaction.Type type, Iterable<String> bookmarks)
type - type of the transactionbookmarks - bookmarks to be passed to drivervoid rollback(Transaction transaction)
transaction - the transaction to rollbackvoid commit(Transaction transaction)
transaction - the transaction to commitTransaction getCurrentTransaction()
boolean canCommit()
boolean canRollback()
void bookmark(String bookmark)
Copyright © 2015–2023 Neo Technology, Inc.. All rights reserved.