|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.data.HashStructureAdapter oracle.jdeveloper.db.ConnectionInfo
public class ConnectionInfo
Wrapper for information about a chosen connection. A connection in the FCP involves both a store name and a connection name for the connection within that store. When picking a connection globally both pieces of information are necessary. This class wraps the two and provides some utility methods for getting the name information and the underlying Referenceable that represents the connection.
Field Summary |
---|
Fields inherited from class oracle.javatools.data.HashStructureAdapter |
---|
_hash |
Constructor Summary | |
---|---|
ConnectionInfo(java.lang.String store,
java.lang.String conn)
Creates a new, standalone connection info. |
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
Returns a JDBC Connection for the connection. |
static ConnectionInfo |
getConnectionInfo(PropertyStorage ps)
Retrieves the connection information from the given property storage. |
static ConnectionInfo |
getConnectionInfo(PropertyStorage ps,
java.lang.String key)
Retrieves the ConnectionInfo from the given PropertyStorage using the given key. |
java.lang.String |
getConnectionName()
Gets the name of the connection. |
Database |
getDatabase()
Returns a Database for the connection. |
java.lang.String |
getQualifiedName()
Gets the qualified name of the connection - i.e. |
DatabaseProvider |
getReferenceable()
Gets the Referenceable implementation for the chosen database connection from the underlying naming context. |
java.lang.String |
getStoreName()
Gets the name of the connection store the connection is from. |
boolean |
isValid()
Returns true if the encapsulated connection information points to an actual connection (i.e. |
void |
setConnectionName(java.lang.String conn)
Sets the name of the connection. |
void |
setStoreName(java.lang.String store)
Sets the name of the connection store the connection is from. |
Methods inherited from class oracle.javatools.data.HashStructureAdapter |
---|
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionInfo(java.lang.String store, java.lang.String conn)
getConnectionInfo(PropertyStorage)
and
getConnectionInfo(PropertyStorage,String)
.
store
- the name of the store the connection is inconn
- the name of the connectionMethod Detail |
---|
public java.lang.String getStoreName()
public void setStoreName(java.lang.String store)
public java.lang.String getConnectionName()
public void setConnectionName(java.lang.String conn)
public java.lang.String getQualifiedName()
public boolean isValid()
public DatabaseProvider getReferenceable()
public java.sql.Connection getConnection() throws ConnectionException
ConnectionException
public Database getDatabase() throws DBException
DBException
public static ConnectionInfo getConnectionInfo(PropertyStorage ps)
public void onEntry( TraversableContext traversableContext ) { ConnectionInfo connInfo = ConnectionInfo.getConnectionInfo( traversableContext.getPropertyStorage() ); String connName = connInfo.getConnectionName(); ... }
ps
- the PropertyStorage to retrieve/store the connection info in.
public static ConnectionInfo getConnectionInfo(PropertyStorage ps, java.lang.String key)
#getConnectionInfo(PropertyStore)
is used.
ps
- the PropertyStorage to retrieve/store the connection info in.key
- the key under which to store the connection information.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |