Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-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
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionWrapper.SQLCallable

public 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()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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