T
- is the type of object that will be returned.public abstract class GcTransactionCallback<T> extends Object
Constructor and Description |
---|
GcTransactionCallback() |
Modifier and Type | Method and Description |
---|---|
abstract T |
callback(GcDbAccess dbAccess)
Get access to the dbAccess with a session.
|
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().
dbAccess
- is the access instance.Copyright © 2016 Internet2. All rights reserved.