edu.internet2.middleware.grouperClient.jdbc
Class GcConnectionCallback<T>

java.lang.Object
  extended by edu.internet2.middleware.grouperClient.jdbc.GcConnectionCallback<T>
Type Parameters:
T - is the type of object that will be returned.

public abstract class GcConnectionCallback<T>
extends java.lang.Object

Object that gets a database connection object.

Author:
harveycg

Constructor Summary
GcConnectionCallback()
           
 
Method Summary
abstract  T callback(java.sql.Connection connection)
          Get access to the database connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GcConnectionCallback

public GcConnectionCallback()
Method Detail

callback

public abstract T callback(java.sql.Connection connection)
Get access to the database connection. If no exception are thrown, the session will be automatically committed.

Parameters:
connection - is the connection access.
Returns:
the correct type.