public interface ConnectionFinder extends 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 |
---|---|
Connection |
find(Connection conn)
Find an instance of Connection that can be cast to an
OracleConnection instance. |
Connection find(Connection conn)
OracleConnection
instance.conn
- the object that is being searched for an OracleConnectionRuntimeException
- thrown when the feature can be found;Copyright © 2018 geolatte.org. All rights reserved.