com.ibm.ws.extensionhelper
Interface ExtensionHelper
- public interface ExtensionHelper
This provides access to transaction and database helper utilities. To retrieve an instance of this interface, u
Since:
5.0.2
Field Summary
Modifier and Type | Field and Description |
---|---|
|
JNDI_NAME
An extension helper can be found by looking up this jndi name in any WebSphere initial context
on a server.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
getDatabaseHelper(java.util.Map dbData)
Returns a new Database Helper.
|
|
getTransactionControl()
Deprecated. Use com.ibm.wsspi.uow.UOWManager.runUnderUOW instead.
|
Field Detail
JNDI_NAME
- static final java.lang.String JNDI_NAME
An extension helper can be found by looking up this jndi name in any WebSphere initial context
on a server.
See Also:
Method Detail
getTransactionControl
- TransactionControl getTransactionControl( )
Deprecated. Use com.ibm.wsspi.uow.UOWManager.runUnderUOW instead.
Returns a new TransactionControl object which can be used to start/commit/rollback transactions. The
TransactionControl object returned can be cached as a singleton as need be. It doesn't
contain any state information.
All state information is stored with the thread and in the TxHandle that the TransactionControl object generates.
Returns:
TranscationControl a TransactionControl instance.
getDatabaseHelper
- DatabaseHelper getDatabaseHelper( java.util.Map dbData)
- throws UnableToInitializeException
Returns a new Database Helper. This call will lookup a datasource and read the optionally supplied
statements file.
Parameters:
dbData
- the parameter map to use to initialize the DatabaseHelper. Returns:
DatabaseHelper an instance of the DatabaseHelper
Throws:
UnableToInitializeException
- If an error occurs during initialization