Interface NativeConnectionProvider

All Known Implementing Classes:
JdbcConnection, OracleConnection

public interface NativeConnectionProvider
Optional interface implemented by Connection classes. It is introduced as a separate interface for preserving backwards compatibility.

Represents a Scriptella object which is able to return the native connection used to talk with the datasource. It is up to the driver to decide which object is returned. For example Scriptella adapters for JDBC drivers return an instance of Connection.

Since:
1.2
Author:
Fyodor Kupolov
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the native connection which is wrapped by this object or null if this information is not available.
  • Method Details

    • getNativeConnection

      Object getNativeConnection()
      Returns the native connection which is wrapped by this object or null if this information is not available.
      Returns:
      native connection which is wrapped by this object.