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.

public abstract class GcCallableStatementCallback<T> extends Object
Object that gets a callableStatement back from the connection and the sql - closing it is handled within the framework.
  • Constructor Details

    • GcCallableStatementCallback

      public GcCallableStatementCallback(String _query)
      Create a callableStatement from the query given.
      Parameters:
      _query -
  • Method Details

    • getQuery

      public String getQuery()
      Returns:
      the query
    • callback

      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.
      Parameters:
      callableStatement - is the connection access.
      Returns:
      the correct type.
      Throws:
      SQLException - is thrown if things go wrong.