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

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

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

Object that gets a dbAccess object with a session in it.

Author:
harveycg

Constructor Summary
GcTransactionCallback()
           
 
Method Summary
abstract  T callback(GcDbAccess dbAccess)
          Get access to the dbAccess with a session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GcTransactionCallback

public GcTransactionCallback()
Method Detail

callback

public abstract T callback(GcDbAccess dbAccess)
Get access to the dbAccess with a session. If no excpetions are thrown, the session will be automatically committed.
 You can also commit or rollback manually by calling DbAccess.commitSession() or dbAccess.rollbackSession().

Parameters:
dbAccess - is the access instance.
Returns:
the correct type.