Package oracle.sql

Class DatumWithConnection

  • All Implemented Interfaces:
    Serializable, oracle.jdbc.internal.OracleDatumWithConnection
    Direct Known Subclasses:
    ARRAY, BFILE, BLOB, CLOB, OPAQUE, REF, STRUCT

    public abstract class DatumWithConnection
    extends Datum
    implements oracle.jdbc.internal.OracleDatumWithConnection
    A supper class for some Oracle specific datatypes, such as BFILE, BLOB, etc.
    See Also:
    Serialized Form
  • <section role="region">
    • Field Detail

    </section> <section role="region">
    • Constructor Detail

      • DatumWithConnection

        public DatumWithConnection()
    </section> <section role="region">
    • Method Detail

      • getJavaSqlConnection

        public Connection getJavaSqlConnection()
                                        throws SQLException
        Oracle extension Return the java.sql.Connection associated with the receiver. Since 9.0.0 not all Oracle JDBC connection objects are assignment compatible with oracle.jdbc.driver.OracleConnection. If the connection is wrapped, return the outermost wrapper.
        Specified by:
        getJavaSqlConnection in interface oracle.jdbc.internal.OracleDatumWithConnection
        Returns:
        the connection
        Throws:
        SQLException - if an error occurs
        Since:
        9iR2
      • getOracleConnection

        public OracleConnection getOracleConnection()
                                             throws SQLException
        Oracle extension. The OracleConnection object associated with the object. If the internal connection is wrapped return the wrapping instance.
        Specified by:
        getOracleConnection in interface oracle.jdbc.internal.OracleDatumWithConnection
        Returns:
        the possibly wrapped connection for external use
        Throws:
        SQLException - if an error occurs
        Since:
        9.2
      • getConnection

        public oracle.jdbc.driver.OracleConnection getConnection()
                                                          throws SQLException
        Deprecated.
        since 9.0.0. Use getJavaSqlConnection() or getInternalConnection(), or Use getOracleConnection() instead.
        Oracle extension. Returns the oracle.jdbc.driver.OracleConnection object associated with the receiver. This is always a physical connection. Any logical connection or connection wrapper associated with the physical connection is ignored by this mehtod
        Specified by:
        getConnection in interface oracle.jdbc.internal.OracleDatumWithConnection
        Returns:
        the connection if it is assignment compatible with oracle.jdbc.driver.OracleConnection
        Throws:
        SQLException - if the connection is not assignment compatible
    </section>