Class TyrexFactory
java.lang.Object
org.ofbiz.core.entity.transaction.TyrexFactory
- All Implemented Interfaces:
TransactionFactoryInterface
TyrexTransactionFactory - central source for Tyrex JTA objects
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static tyrex.tm.TransactionDomain -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String helperName) static DataSourcegetDataSource(String dsName) static tyrex.resource.Resourcesjavax.transaction.TransactionManagerjavax.transaction.UserTransactionvoidremoveDatasource(String helperName) Removes a datasource, and if necessary, shuts it down
-
Field Details
-
td
protected static tyrex.tm.TransactionDomain td -
DOMAIN_NAME
-
-
Constructor Details
-
TyrexFactory
public TyrexFactory()
-
-
Method Details
-
getResources
public static tyrex.resource.Resources getResources() -
getDataSource
-
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin interfaceTransactionFactoryInterface
-
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()- Specified by:
getUserTransactionin interfaceTransactionFactoryInterface
-
getTxMgrName
- Specified by:
getTxMgrNamein interfaceTransactionFactoryInterface
-
getConnection
- Specified by:
getConnectionin interfaceTransactionFactoryInterface- Throws:
SQLExceptionGenericEntityException
-
removeDatasource
Description copied from interface:TransactionFactoryInterfaceRemoves a datasource, and if necessary, shuts it down- Specified by:
removeDatasourcein interfaceTransactionFactoryInterface- Parameters:
helperName- The name of the datasource to remove
-