com.atlassian.core.ofbiz.util
Class CoreTransactionUtil

java.lang.Object
  extended by com.atlassian.core.ofbiz.util.CoreTransactionUtil

public class CoreTransactionUtil
extends Object

This class is a simple wrapper around OFBiz TransactionUtil class.

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.

Since:
4.3

Constructor Summary
CoreTransactionUtil()
           
 
Method Summary
static boolean begin()
           
static void commit(boolean began)
           
static int getIsolationLevel()
           
static void rollback(boolean began)
           
static void setIsolationLevel(int isolationLevel)
           
static void setUseTransactions(boolean useTransactions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreTransactionUtil

public CoreTransactionUtil()
Method Detail

begin

public static boolean begin()
                     throws org.ofbiz.core.entity.GenericTransactionException
Throws:
org.ofbiz.core.entity.GenericTransactionException

commit

public static void commit(boolean began)
                   throws org.ofbiz.core.entity.GenericTransactionException
Throws:
org.ofbiz.core.entity.GenericTransactionException

rollback

public static void rollback(boolean began)
                     throws org.ofbiz.core.entity.GenericTransactionException
Throws:
org.ofbiz.core.entity.GenericTransactionException

setUseTransactions

public static void setUseTransactions(boolean useTransactions)

getIsolationLevel

public static int getIsolationLevel()

setIsolationLevel

public static void setIsolationLevel(int isolationLevel)


Copyright © 2002-2014 Atlassian. All Rights Reserved.