Skip navigation links


oracle.idm.connection.sql
Class SqlConnectionManager

java.lang.Object
  extended by oracle.idm.connection.ConnectionManager
      extended by oracle.idm.connection.sql.SqlConnectionManager

All Implemented Interfaces:
java.lang.Comparable, ConnectionDelegate, XmlPrintable

public class SqlConnectionManager
extends ConnectionManager

This class implements the SQL connection manager.

When modifying SQL connection manager properties directly, synchronize with the connection pool in order to avoid undesirable side effects, as follows:

 synchronized (pool) { manager.setValidating(false); }
 

Field Summary

 

Fields inherited from class oracle.idm.connection.ConnectionManager
tag

 

Fields inherited from interface oracle.idm.connection.ConnectionDelegate
DEFAULT_LIMIT, DEFAULT_PRIORITY, DEFAULT_PROXYING, DEFAULT_STACK_TRACING, DEFAULT_VALIDATING, DEFAULT_WEIGHT

 

Constructor Summary
SqlConnectionManager()
          Constructor for the SQL connection manager.

 

Method Summary
 java.util.Map cloneParameters(java.util.Map parameters)
          This method colones parameters to be internalized by the connection.
 java.lang.String getType()
          Getter for the type of this connection delegate.
 Connection openConnection(java.util.Map parameters)
          This method opens a connection.

 

Methods inherited from class oracle.idm.connection.ConnectionManager
canCaptureConnection, canCloseConnection, canInvalidateConnection, canMatchConnection, canOpenConnection, canOperateConnection, canProxyConnection, canReleaseConnection, canRemoveConnection, canReturnConnection, canValidateConnection, captureConnection, checkConnection, checkParameters, checkProxying, checkValidating, closeConnection, compareTo, getConnectionOperationCountInfo, getConnectionOperationFailSafe, getGross, getLimit, getLoad, getLogger, getPriority, getWeight, hasReachedLimit, invalidateConnection, isAlteredConnection, isForeignConnection, isMatchingConnection, isMatchingParameters, isMatchingType, isProxying, isStackTracing, isValidating, matchConnection, openConnection, proxyConnection, releaseConnection, removeConnection, resetLimit, resetPriority, resetProxying, resetStackTracing, resetValidating, resetWeight, returnConnection, setLimit, setPriority, setProxying, setStackTracing, setValidating, setWeight, validateConnection, xprint, xprintBody

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SqlConnectionManager

public SqlConnectionManager()
Constructor for the SQL connection manager.

Method Detail

getType

public java.lang.String getType()
Description copied from interface: ConnectionDelegate
Getter for the type of this connection delegate.

A connection delegate type must match the type of the connection it manages.

Returns:
string representing the type

openConnection

public Connection openConnection(java.util.Map parameters)
                          throws ConnectionException
Description copied from interface: ConnectionDelegate
This method opens a connection.
Returns:
connection that has been opened
Throws:
ConnectionException

cloneParameters

public java.util.Map cloneParameters(java.util.Map parameters)
This method colones parameters to be internalized by the connection.

This version will hide the Connection.Parameter.CREDENTIALS value.

Returns:
cloned parameter map

Skip navigation links