Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.javatools.db.execute
Class ConnectionWrapper.SQLCallable<T>

java.lang.Object
  extended by oracle.javatools.db.execute.ConnectionWrapper.SQLCallable<T>

Direct Known Subclasses:
ConnectionWrapper.SQLRunnable
Enclosing class:
ConnectionWrapper

public abstract class ConnectionWrapper.SQLCallable<T>
extends java.lang.Object

Callable class that can throw a SQLException from its call method. A getConnection() method is provided that will not reconnect if the Database implementation supports identification of "connection closed" exceptions.


Constructor Summary
protected ConnectionWrapper.SQLCallable()
           

 

Method Summary
abstract  T call()
          Implementations should: Exclusively use getConnection() to get the Connection to use Not explictly close the Connection
protected  java.sql.Connection getConnection()
          Gets the Connection that the callable should operate on.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ConnectionWrapper.SQLCallable

protected ConnectionWrapper.SQLCallable()

Method Detail

call

public abstract T call()
                throws java.sql.SQLException,
                       DBException
Implementations should:
Throws:
java.sql.SQLException - thrown from any operation on the Connection
DBException

getConnection

protected final java.sql.Connection getConnection()
Gets the Connection that the callable should operate on.
Returns:
the Connection

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.