com.stc.connector.oracleappsadapter.appconn
Class DbApplicationConnection

com.stc.connector.oracleappsadapter.appconn.DbApplicationConnection
Direct Known Subclasses:
OracleappsApplicationConnection

public class DbApplicationConnection

This class implements the ApplicationConnection interface for the Db Application Connection.


Field Summary
protected  DbConnector mDbConnector
          A database connector which provides an entry point to all the DB eWay services.
 
Constructor Summary
DbApplicationConnection()
          Default constructor.
DbApplicationConnection(javax.sql.DataSource ds)
          Creates a new instance of DbApplicationConnection.
DbApplicationConnection(javax.sql.DataSource ds, java.util.Properties connProps)
          Creates a new instance of DbApplicationConnection.
 
Method Summary
 void close()
          Closes the application connection handle using the cci conn handle
 java.lang.Object createApplication(java.lang.String appName)
          Creates an Application from the Application Connection.
 com.stc.connector.appconn.common.OutputHandler createOutputHandler()
          Creates an OutputHandler for "sending" data to the EIS.
 

Field Detail

mDbConnector

protected DbConnector mDbConnector
A database connector which provides an entry point to all the DB eWay services.
Constructor Detail

DbApplicationConnection

public DbApplicationConnection()
Default constructor.

DbApplicationConnection

public DbApplicationConnection(javax.sql.DataSource ds)
Creates a new instance of DbApplicationConnection.

Parameters:
ds - the ManagedConnection which created this connection. In database, this is the DataSource.

DbApplicationConnection

public DbApplicationConnection(javax.sql.DataSource ds,
                               java.util.Properties connProps)
Creates a new instance of DbApplicationConnection.

Parameters:
ds - the ManagedConnection which created this connection. In database, this is the DataSource.
connProps - connection properties. An example is user name.
Method Detail

close

public void close()
           throws com.stc.connector.appconn.common.ApplicationConnectionException
Closes the application connection handle using the cci conn handle

Parameters:
None.
Returns:
void - None.
Throws:
ApplicationConnectionException - upon error.

createApplication

public java.lang.Object createApplication(java.lang.String appName)
                                   throws com.stc.connector.appconn.common.ApplicationException
Creates an Application from the Application Connection. The application is an API which can be used to interact with the underlying EIS synchronously. The application API must be invalidated once the close method is called on the Application Connection.

Parameters:
appName - name of the application. In case of DB, this is the OTD name.
Returns:
An Object representing the EIS specific application component to interact with the EIS.
Throws:
ApplicationException - upon error.

createOutputHandler

public com.stc.connector.appconn.common.OutputHandler createOutputHandler()
                                                                   throws com.stc.connector.appconn.common.ApplicationException
Creates an OutputHandler for "sending" data to the EIS. If the eWay does not support an OutputHandler, then it should return null for its implementation of this method. This is not applicable to database.

Parameters:
None.
Returns:
The eWay specific OutputHandler for handling "sending" data to the external system or null if the eWay does not have an OutputHandler.
Throws:
ApplicationException - upon error.


Copyright 2004 by SeeBeyond Technology Corporation. All Rights Reserved.