public class CoreTransactionUtil extends Object
You can set JIRA to use transactions or not with the useTransactions flag.
This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.
Constructor and Description |
---|
CoreTransactionUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
begin()
Deprecated.
Since v7.5.0. Please only use
Txn.begin() or TransactionSupport directly for your managed transactions |
static void |
commit(boolean began)
Deprecated.
Since v7.5.0. Please only use
Txn.begin() or TransactionSupport directly for your managed transactions |
static Connection |
getConnection() |
static int |
getIsolationLevel() |
static boolean |
inTransaction() |
static void |
rollback(boolean began)
Deprecated.
Since v7.5.0. Please only use
Txn.begin() or TransactionSupport directly for your managed transactions |
static void |
setIsolationLevel(int isolationLevel) |
static void |
setRollbackOnly(boolean began)
Deprecated.
Since v7.5.0. Please only use
Txn.begin() or TransactionSupport directly for your managed transactions |
static void |
setUseTransactions(boolean useTransactions) |
@Deprecated public static boolean begin() throws org.ofbiz.core.entity.GenericTransactionException
Txn.begin()
or TransactionSupport
directly for your managed transactionsTxn.begin()
or TransactionSupport.begin()
directly to start a Transaction, so that
it includes the RequestLocalTransactionRunnableQueueFactory
logic to allow TxnAwareEventFactory
to be executed as expected.
If still prefer to use this directly, ensure that handle the RunnablesQueue
logic.
org.ofbiz.core.entity.GenericTransactionException
@Deprecated public static void commit(boolean began) throws org.ofbiz.core.entity.GenericTransactionException
Txn.begin()
or TransactionSupport
directly for your managed transactionsorg.ofbiz.core.entity.GenericTransactionException
@Deprecated public static void rollback(boolean began) throws org.ofbiz.core.entity.GenericTransactionException
Txn.begin()
or TransactionSupport
directly for your managed transactionsorg.ofbiz.core.entity.GenericTransactionException
@Deprecated public static void setRollbackOnly(boolean began) throws org.ofbiz.core.entity.GenericTransactionException
Txn.begin()
or TransactionSupport
directly for your managed transactionsorg.ofbiz.core.entity.GenericTransactionException
public static void setUseTransactions(boolean useTransactions)
public static int getIsolationLevel()
public static void setIsolationLevel(int isolationLevel)
public static Connection getConnection()
public static boolean inTransaction()
Copyright © 2002-2019 Atlassian. All Rights Reserved.