com.ibm.ws.extensionhelper

Interface ExtensionHelper


  1. public interface ExtensionHelper
Interface to provide some commonly used patterns for WebSphere developers in a server environment.

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
  1. static
  2. 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.

Method Summary

Modifier and Type Method and Description
  1. DatabaseHelper
getDatabaseHelper(java.util.Map dbData)
Returns a new Database Helper.
  1. TransactionControl
getTransactionControl()
Deprecated. Use com.ibm.wsspi.uow.UOWManager.runUnderUOW instead.

Field Detail

JNDI_NAME

  1. 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

  1. 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

  1. DatabaseHelper getDatabaseHelper( java.util.Map dbData)
  2. 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