org.hibernate.spatial.dialect.oracle
Class DefaultConnectionFinder
java.lang.Object
org.hibernate.spatial.dialect.oracle.DefaultConnectionFinder
- All Implemented Interfaces:
- ConnectionFinder, FinderStrategy<java.sql.Connection,java.sql.Connection>
public class DefaultConnectionFinder
- extends java.lang.Object
- implements ConnectionFinder
Default 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.
Method Summary |
java.sql.Connection |
find(java.sql.Connection con)
Find a feature or property of a subject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConnectionFinder
public DefaultConnectionFinder()
find
public java.sql.Connection find(java.sql.Connection con)
throws FinderException
- Description copied from interface:
FinderStrategy
- Find a feature or property of a subject
- Specified by:
find
in interface FinderStrategy<java.sql.Connection,java.sql.Connection>
- Parameters:
con
- the object that is being searched
- Returns:
- the object sought
- Throws:
FinderException
- thrown when the feature can be found;