|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.html.jsp.ConnectionInfo
Represents the connection information used by the ApplicationPool class in order to instantiate an ApplicationModule. View implementation of ConnectionInfo
Field Summary | |
static java.lang.String |
O8I_CONNECT_STRING
|
static java.lang.String |
SET_APP_MODULE
|
static java.lang.String |
SET_APP_PATH
|
static java.lang.String |
SET_CONNECT_MODE
|
static java.lang.String |
SET_CONNECT_TYPE_8I_CORBA
|
static java.lang.String |
SET_CONNECT_TYPE_8I_EJB
|
static java.lang.String |
SET_CONNECT_TYPE_LOCAL
|
static java.lang.String |
SET_CONNECT_TYPE_VB_BINDING
|
static java.lang.String |
SET_CONNECT_TYPE_VB_COLOCATE
|
static java.lang.String |
SET_CONNECT_TYPE_VB_NAMING
|
static java.lang.String |
SET_CONNECTION_NAME
|
static java.lang.String |
SET_DAD_NAME
|
static java.lang.String |
SET_HOST_NAME
|
static java.lang.String |
SET_JNDI_PATH
|
static java.lang.String |
SET_PASSWORD
|
static java.lang.String |
SET_POOL_CLASS
|
static java.lang.String |
SET_USERNAME
|
Constructor Summary | |
ConnectionInfo()
Constructor |
|
ConnectionInfo(java.util.Hashtable props)
This constructor provides a convenient way to initialize the ConnectionInfo's variables by providing a Hashtable with the values for the various properties. |
Method Summary | |
java.lang.String |
getAppModuleClass()
Returns the Class name of the Application Module represented by the ConnectionInfo class. |
java.lang.String |
getConnectionName()
Returns the connection name |
java.util.Hashtable |
getConnectionSettings()
Retrieves the Hashtable that contains all the connection parameters being used to instanciate an application module. |
java.lang.String |
getConnectionType()
Returns the current value of connection type. |
java.lang.String |
getConnectionUrl()
Returns the connection URL |
java.lang.String |
getJndiPath()
Returns the Jndi path |
java.lang.String |
getPassword()
Returns the current password. |
java.lang.String |
getPoolClass()
Returns the Class name used for the ApplicationPool |
java.lang.String |
getUserName()
|
void |
initializeConnectionSettings()
This function should be called after setting values for the ConnectionName,ConnectionType and Password properties. |
void |
initializeFromConnectionName(java.lang.String sConnectionName)
|
static void |
populateHashTableWithRemoteConnectionInfo(java.util.Hashtable env,
java.lang.String sRemoteConnectionName,
java.lang.String sPassword,
java.lang.String sJndiPath)
This is an internal function that populates a Hashtable with the HTTP connection information. |
void |
setAppModuleClass(java.lang.String sClass)
Provides the Class name of the Application Module to be connected to. |
void |
setConnectionName(java.lang.String sName)
Assigns the connection name. |
void |
setConnectionSettings(java.util.Hashtable settings)
Sets the connection settings to be used for instanciating and Application Module. |
void |
setConnectionType(java.lang.String sType)
Sets up the connection type. |
void |
setConnectionUrl(java.lang.String sUrl)
Sets the connection URL to be used by the Application Module. |
void |
setJndiPath(java.lang.String sPath)
Provides the Jndi Path required when connecting to an ApplicationModule deployed to Oracle 8i as an EJB or Corba object. |
void |
setPassword(java.lang.String sPassword)
Provides the password. |
void |
setPoolClass(java.lang.String sClass)
Provides the Class name for the Class that implements the ApplicationPool interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String O8I_CONNECT_STRING
public static final java.lang.String SET_CONNECT_MODE
public static final java.lang.String SET_CONNECTION_NAME
public static final java.lang.String SET_PASSWORD
public static final java.lang.String SET_USERNAME
public static final java.lang.String SET_JNDI_PATH
public static final java.lang.String SET_APP_MODULE
public static final java.lang.String SET_POOL_CLASS
public static final java.lang.String SET_APP_PATH
public static final java.lang.String SET_HOST_NAME
public static final java.lang.String SET_DAD_NAME
public static final java.lang.String SET_CONNECT_TYPE_LOCAL
public static final java.lang.String SET_CONNECT_TYPE_8I_CORBA
public static final java.lang.String SET_CONNECT_TYPE_8I_EJB
public static final java.lang.String SET_CONNECT_TYPE_VB_NAMING
public static final java.lang.String SET_CONNECT_TYPE_VB_BINDING
public static final java.lang.String SET_CONNECT_TYPE_VB_COLOCATE
Constructor Detail |
public ConnectionInfo()
public ConnectionInfo(java.util.Hashtable props)
This constructor provides a convenient way to initialize the ConnectionInfo's variables by providing a Hashtable with the values for the various properties. The expected name/value pairs are: ConnectionInfo.SET_CONNECT_MODE - This can be Local, 8i or EJB ConnectionInfo.SET_CONNECTION_NAME - The named connection to be used for getting the connection information. ConnectionInfo.SET_PASSWORD - The password to be used in the connection URL ConnectionInfo.SET_USERNAME - The user name to be used in the connection URL ConnectionInfo.SET_JNDI_PATH - The JndiPath to be used (If applicable to the connection type) ConnectionInfo.SET_APP_MODULE - The Class name for the application module to be instantiated ConnectionInfo.SET_POOL_CLASS - The Class name of the class to use instead of the default ApplicationPool implementation class. ConnectionInfo.SET_APP_PATH - application path ( maps to JboContext.APPLICATION_PATH) Here is a sample initialization of some of the parameters: Hashtable ht = new Hashtable(10); ht.put(ConnectionInfo.SET_CONNECT_MODE , ConnectionInfo.SET_CONNECT_TYPE_LOCAL); ht.put(ConnectionInfo.SET_CONNECTION_NAME, "Connection1"); ht.put(ConnectionInfo.SET_APP_MODULE , "package1.Package1Module");
Method Detail |
public java.lang.String getUserName()
public void initializeConnectionSettings()
public void setPoolClass(java.lang.String sClass)
public java.lang.String getPoolClass()
public void setConnectionType(java.lang.String sType)
ConnectionInfo.SET_CONNECT_TYPE_LOCAL ConnectionInfo.SET_CONNECT_TYPE_8I_CORBA ConnectionInfo.SET_CONNECT_TYPE_8I_EJB
public java.lang.String getConnectionType()
public void setConnectionName(java.lang.String sName)
public java.lang.String getConnectionName()
public java.util.Hashtable getConnectionSettings()
public void setConnectionSettings(java.util.Hashtable settings)
public java.lang.String getAppModuleClass()
public void setAppModuleClass(java.lang.String sClass)
public java.lang.String getConnectionUrl()
public void setConnectionUrl(java.lang.String sUrl)
public void setPassword(java.lang.String sPassword)
public java.lang.String getPassword()
public void setJndiPath(java.lang.String sPath)
public java.lang.String getJndiPath()
public void initializeFromConnectionName(java.lang.String sConnectionName)
public static void populateHashTableWithRemoteConnectionInfo(java.util.Hashtable env, java.lang.String sRemoteConnectionName, java.lang.String sPassword, java.lang.String sJndiPath)
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.