|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public boolean connect(oracle.jbo.ApplicationModule appModule, SessionInfo sessInfo)
sessInfo
- handle to the session object invoking the connect.
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.