T
- is the type of object that will be returned.public abstract class GcCallableStatementCallback<T> extends Object
Constructor and Description |
---|
GcCallableStatementCallback(String _query)
Create a callableStatement from the query given.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
callback(CallableStatement callableStatement)
Get access to the database connection.
|
String |
getQuery() |
public GcCallableStatementCallback(String _query)
_query
- public String getQuery()
public abstract T callback(CallableStatement callableStatement) throws SQLException
Get access to the database connection. If no exception are thrown, the session will be automatically committed.
callableStatement
- is the connection access.SQLException
- is thrown if things go wrong.Copyright © 2016 Internet2. All rights reserved.