Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

oracle.apps.fnd.applcore.flex.runtime
Class ConnectionIdentifier

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.ConnectionIdentifier

public final class ConnectionIdentifier
extends java.lang.Object

An identifier to a JDBC connection.


Field Summary
static java.lang.String APPLICATION_MODULE_CONFIG
          The special String that indicates the connection information should come from an application module configuration when the application module instance is created.
 
Method Summary
 oracle.jbo.ApplicationModule createApplicationModule(java.lang.String amName, java.lang.String configName)
          Creates a root application module.
static ConnectionIdentifier getInstance()
          Gets the instance of this class that indicates the connection information should come from an application module configuration when the application module is created.
static ConnectionIdentifier getInstance(java.lang.String identStr)
          Gets an instance of this class.
 java.lang.String getURI()
          Gets the JDBC connection URI associated with this identifier.
static void releaseApplicationModule(oracle.jbo.ApplicationModule am, boolean remove)
          Releases an application module created by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_MODULE_CONFIG

public static final java.lang.String APPLICATION_MODULE_CONFIG
The special String that indicates the connection information should come from an application module configuration when the application module instance is created. This String is always "@Configuration".

See Also:
Constant Field Values
Method Detail

getInstance

public static ConnectionIdentifier getInstance(java.lang.String identStr)
Gets an instance of this class. The identifier String can be a JDBC connection URL or a special String "@Configuration" to indicate that the connection information should come from an application module configuration when the application module instance is created.

Parameters:
identStr - the identifier; it should be a valid JDBC URL or "@Configuration"
Throws:
java.lang.IllegalArgumentException - if the given identifier String is null
See Also:
APPLICATION_MODULE_CONFIG

getInstance

public static ConnectionIdentifier getInstance()
Gets the instance of this class that indicates the connection information should come from an application module configuration when the application module is created.

Returns:
the instance of this class that indicates the connection information should come from an application module configuration when the application module is created

getURI

public java.lang.String getURI()
Gets the JDBC connection URI associated with this identifier.

Returns:
the JDBC connectino URI associated with this identifier; null if this identifier indicates that the connection information should come from an application module configuration when the application module instance is created
See Also:
createApplicationModule(java.lang.String, java.lang.String)

createApplicationModule

public oracle.jbo.ApplicationModule createApplicationModule(java.lang.String amName,
                                                            java.lang.String configName)
Creates a root application module. If this identifier indicates that an application module configuration should be used, then the JDBC connection comes from the configuration; otherwise the JDBC connection comes from the URI stored in this identifier, and the configuration name is ignored.

Parameters:
amName - the name of the application module
configName - the name of the application module configuration; ignored if the JDBC connection URI comes directly from this identifier
Returns:
an application module instance
Throws:
oracle.jbo.JboException - if an error occurs

releaseApplicationModule

public static void releaseApplicationModule(oracle.jbo.ApplicationModule am,
                                            boolean remove)
Releases an application module created by this class.

Parameters:
am - the application module to be released
remove - true if this application module should be removed from the pool. Applicable only if the application module was created by oracle.jbo.client.Configuration
See Also:
createApplicationModule(java.lang.String, java.lang.String)

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

Copyright © 2012 Oracle. All Rights Reserved.