public class DefaultConnectionFinder extends java.lang.Object implements ConnectionFinder
ConnectionFinder implementation.
This implementation attempts to retrieve the OracleConnection
by recursive reflection: it searches for methods that return
Connection objects, executes these methods and checks the
result. If the result is of type OracleConnection the object
is returned, otherwise it recurses on it.
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Class<?> |
ORACLE_CONNECTION_CLASS |
| Constructor and Description |
|---|
DefaultConnectionFinder() |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
find(java.sql.Connection con)
Find an instance of Connection that can be cast to an
OracleConnection instance. |
private static final java.lang.Class<?> ORACLE_CONNECTION_CLASS
public java.sql.Connection find(java.sql.Connection con)
ConnectionFinderOracleConnection instance.find in interface ConnectionFindercon - the object that is being searched for an OracleConnection