Class GcCallableStatementCallback<T>
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.GcCallableStatementCallback<T>
- Type Parameters:
T
- is the type of object that will be returned.
Object that gets a callableStatement back from the connection and the sql - closing it is handled within the framework.
-
Constructor Summary
ConstructorDescriptionGcCallableStatementCallback
(String _query) Create a callableStatement from the query given. -
Method Summary
Modifier and TypeMethodDescriptionabstract T
callback
(CallableStatement callableStatement) Get access to the database connection.getQuery()
-
Constructor Details
-
GcCallableStatementCallback
Create a callableStatement from the query given.- Parameters:
_query
-
-
-
Method Details
-
getQuery
- Returns:
- the query
-
callback
Get access to the database connection. If no exception are thrown, the session will be automatically committed.
- Parameters:
callableStatement
- is the connection access.- Returns:
- the correct type.
- Throws:
SQLException
- is thrown if things go wrong.
-