public interface ConnectionFinder
extends java.io.Serializable
ConnectionFinder returns an OracleConnection when given a
Connection object.
The SDOGeometryType requires access to an OracleConnection
object when converting a geometry to SDOGeometry, prior to
setting the geometry attribute in prepared statements. In some environments
the prepared statements do not return an OracleConnection but
a wrapper. Implementations of this interface attempt to retrieve the
OracleConnection from the wrapper in such cases.
Implementations should be thread-safe, and have a default (no-args) constructor.
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
find(java.sql.Connection conn)
Find an instance of Connection that can be cast to an
OracleConnection instance. |
java.sql.Connection find(java.sql.Connection conn)
OracleConnection instance.conn - the object that is being searched for an OracleConnectionjava.lang.RuntimeException - thrown when the feature can be found;