| Package | Description |
|---|---|
| org.ofbiz.core.entity |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TransactionUtil.begin()
Begins a transaction in the current thread IF transactions are available; only
tries if the current transaction status is ACTIVE, if not active it returns false.
|
static boolean |
TransactionUtil.beginLocalTransaction(String helperName,
int transactionIsolationLevel)
Starts a transaction if one does not exist already.
|
static void |
TransactionUtil.commit()
Commits the transaction in the current thread IF transactions are available
|
static void |
TransactionUtil.commit(boolean beganTransaction)
Commits the transaction in the current thread IF transactions are available
AND if beganTransaction is true
|
static void |
TransactionUtil.commitLocalTransaction(boolean beganTransaction)
Commits a transaction if beganTransaction is true and there is an active transaction.
|
static Connection |
TransactionUtil.enlistConnection(XAConnection xacon)
Enlists the given XAConnection and if a transaction is active in the current thread, returns a plain JDBC Connection
|
static void |
TransactionUtil.enlistResource(XAResource resource) |
static int |
TransactionUtil.getStatus()
Gets the status of the transaction in the current thread IF
transactions are available, otherwise returns STATUS_NO_TRANSACTION
|
static void |
TransactionUtil.rollback()
Rolls back transaction in the current thread IF transactions are available
|
static void |
TransactionUtil.rollback(boolean beganTransaction)
Rolls back transaction in the current thread IF transactions are available
AND if beganTransaction is true; if beganTransaction is not true,
setRollbackOnly is called to insure that the transaction will be rolled back
|
static void |
TransactionUtil.rollbackLocalTransaction(boolean beganTransaction)
Rolls back a transaction if beganTransaction is true and there is an active transaction.
|
static void |
TransactionUtil.rollbackRequiredLocalTransaction(boolean beganTransaction)
Makes a rollback the only possible outcome of the transaction in the current thread IF transactions are available.
|
static void |
TransactionUtil.setRollbackOnly()
Makes a roll back the only possible outcome of the transaction in the current thread IF transactions are available
|
void |
EntitySaxReader.setTransactionTimeout(int transactionTimeout) |
static void |
TransactionUtil.setTransactionTimeout(int seconds)
Sets the timeout of the transaction in the current thread IF transactions are available
|
Copyright © 2015 Atlassian. All rights reserved.