Interface ConnectionFinder
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultConnectionFinder
public interface ConnectionFinder extends Serializable
TheConnectionFinderreturns an OracleConnection when given aConnectionobject.The SDOGeometryType requires access to an
OracleConnectionobject when converting a geometry toSDOGeometry, prior to setting the geometry attribute in prepared statements. In some environments the prepared statements do not return anOracleConnectionbut a wrapper. Implementations of this interface attempt to retrieve theOracleConnectionfrom the wrapper in such cases.Implementations should be thread-safe, and have a default (no-args) constructor.
- Author:
- Karel Maesen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connectionfind(Connection conn)Find an instance of Connection that can be cast to anOracleConnectioninstance.
-
-
-
Method Detail
-
find
Connection find(Connection conn)
Find an instance of Connection that can be cast to anOracleConnectioninstance.- Parameters:
conn- the object that is being searched for an OracleConnection- Returns:
- the object sought
- Throws:
RuntimeException- thrown when the feature can be found;
-
-