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