com.ibm.ws.extensionhelper

Interface ExtensionHelper



  • 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

      Fields 
      Modifier and Type Field and Description
      static 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.
    • 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:
        Constant Field Values
    • 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
IBM WebSphere Application ServerTM
Release 8.5