Oracle Data-aware Controls Reference

oracle.dacf.dataset
Interface CustomConnect


Deprecated. use CustomConnection instead

public interface CustomConnect

The CustomConnect interface allows implementors to provide their own connection information when publishing data objects.

Typically, the DAC framework performs a connect when the data items are published. To allow the DAC framework to perform the connect, set up a SessionInfo to connect to an Application Module. When you publish the session, the SessionInfo object creates the Application Module and the DAC framework uses the connection information available on the client side to connect to the Application Module.

In contrast, users who want to manage their own connects after the Application Module is created should implement the CustomConnect interface, and register the implementation with SessionInfo by using SessionInfo.setCustomConnect(CustomConnect customConnect).

In this case, after the DAC framework creates the Application Module, the framework will invoke the "connect" method of the registered implementation and attempt to connect with the Application Module. It is recommended that the implementation of CustomConnect should throw an exception if the connect fails. This is because if the registered implementation fails to connect, then the DAC framework will assume control and try to perform the connect.

Version:
PUBLIC
See Also:
SessionInfo, SessionInfo.setCustomConnect(CustomConnect customConnect), CustomConnection

Method Summary
 boolean connect(oracle.jbo.ApplicationModule appModule, SessionInfo sessInfo)
          Deprecated. Called by the DAC framework to do the actual connect.
 

Method Detail

connect

public boolean connect(oracle.jbo.ApplicationModule appModule,
                       SessionInfo sessInfo)
Deprecated. 
Called by the DAC framework to do the actual connect. Implementors will typically derive a username and password and perform a connect.

Parameters:
sessInfo - handle to the session object invoking the connect.
Returns:
true indicates that the custom method was able to connect succesfully; false indicates that DAC.

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.