Oracle Data-aware Controls Reference

oracle.dacf.dataset.connections
Class Connection

java.lang.Object
  extended byoracle.dacf.dataset.connections.Connection
All Implemented Interfaces:
ConnectionInfo
Direct Known Subclasses:
LocalConnection, Oracle8iConnection, VBConnection, WebLogicConnection

public abstract class Connection
extends java.lang.Object
implements ConnectionInfo


Field Summary
protected  java.lang.String _appModuleName
           
protected  java.lang.String _appModulePackage
           
 
Constructor Summary
Connection()
           
 
Method Summary
protected  oracle.jbo.ApplicationModule _createAppModule(AppModuleInfo appmoduleInfo)
          Creates the ApplicationModule and establishes a Connection
protected  java.lang.String _getConnectionURL()
          Allows every implementation to overwrite the connectionURL
protected  void _setConnectionSpecificEnvs()
          Allows every implementation to add its own properties to JboContext
 oracle.jbo.ApplicationModule connect(AppModuleInfo appmoduleInfo)
          this method provides the Middeltier with all the connection Information.
 java.applet.Applet getAppletInstance()
          get Applet context
abstract  int getConnectionModeConstant()
          this method returns the middeltier property for this particular connection mode.
abstract  java.lang.String getDeploymentPlatform()
          this method returns the middeltier property for this particular deployment platform.
 java.util.Hashtable getEnvironment()
          Returns the environment hashtable used when creating the Application Module.
abstract  NamedConnection getLoginConnection()
          this method returns the Connection, that defines the authorization.
 void setAppletInstance(java.applet.Applet appletInstance)
          set the Applet context.
 void setCustomConnect(CustomConnect customConnect, SessionInfo sessionInfo)
          Deprecated. use setCustomConnection instead
 void setCustomConnection(CustomConnection customConnect)
          Defines the customConnection definition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_appModulePackage

protected java.lang.String _appModulePackage

_appModuleName

protected java.lang.String _appModuleName
Constructor Detail

Connection

public Connection()
Method Detail

setAppletInstance

public void setAppletInstance(java.applet.Applet appletInstance)
set the Applet context. This property has to be so that the ORB can be intialized as an Applet. If null, the ORB will be intitalized as an Application

Specified by:
setAppletInstance in interface ConnectionInfo
Parameters:
appletInstance - applet

getAppletInstance

public java.applet.Applet getAppletInstance()
get Applet context

Specified by:
getAppletInstance in interface ConnectionInfo
Returns:
applet instance

getLoginConnection

public abstract NamedConnection getLoginConnection()
this method returns the Connection, that defines the authorization. There will be no setMethod for this method. The set methods will be setJdbcConnection/setIIOPConnection (depending on Connection class)

Specified by:
getLoginConnection in interface ConnectionInfo
Returns:
the Connection defining the authorization for logging in

getDeploymentPlatform

public abstract java.lang.String getDeploymentPlatform()
this method returns the middeltier property for this particular deployment platform. The method is implemented by each class. There will be no setMethod for this property.

Specified by:
getDeploymentPlatform in interface ConnectionInfo
Returns:
the middeltier property for DeploymentPlatform

getConnectionModeConstant

public abstract int getConnectionModeConstant()
this method returns the middeltier property for this particular connection mode. The method is implemented by each class. There will be no setMethod for this property.

Specified by:
getConnectionModeConstant in interface ConnectionInfo
Returns:
the middeltier property for ConnectionMode
See Also:
ConnectionModeConstants

connect

public oracle.jbo.ApplicationModule connect(AppModuleInfo appmoduleInfo)
this method provides the Middeltier with all the connection Information. It creates an Application Module. The ApplicationModule then establishes a connection.

Specified by:
connect in interface ConnectionInfo
Returns:
the instantiated ApplicationModule

getEnvironment

public java.util.Hashtable getEnvironment()
Returns the environment hashtable used when creating the Application Module.

Specified by:
getEnvironment in interface ConnectionInfo
Returns:
the environment hashtable.

setCustomConnect

public void setCustomConnect(CustomConnect customConnect,
                             SessionInfo sessionInfo)
Deprecated. use setCustomConnection instead

Defines the old customConnect definition Used by SessionInfo, to support old CustomConnect definition.

Specified by:
setCustomConnect in interface ConnectionInfo

setCustomConnection

public void setCustomConnection(CustomConnection customConnect)
Defines the customConnection definition

Specified by:
setCustomConnection in interface ConnectionInfo

_createAppModule

protected oracle.jbo.ApplicationModule _createAppModule(AppModuleInfo appmoduleInfo)
Creates the ApplicationModule and establishes a Connection

Returns:
Bc4J's ApplicationModule instantiated and connected

_setConnectionSpecificEnvs

protected void _setConnectionSpecificEnvs()
Allows every implementation to add its own properties to JboContext


_getConnectionURL

protected java.lang.String _getConnectionURL()
Allows every implementation to overwrite the connectionURL

Returns:
the connectionURL

Oracle Data-aware Controls Reference

 

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