Interface ConnectionFinder

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    DefaultConnectionFinder

    public interface ConnectionFinder
    extends Serializable
    The 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.

    Author:
    Karel Maesen
    • Method Detail

      • find

        Connection find​(Connection conn)
        Find an instance of Connection that can be cast to an OracleConnection instance.
        Parameters:
        conn - the object that is being searched for an OracleConnection
        Returns:
        the object sought
        Throws:
        RuntimeException - thrown when the feature can be found;