Interface RefCursorSupport

All Superinterfaces:
Serializable, Service
All Known Implementing Classes:
FallbackRefCursorSupport, StandardRefCursorSupport

public interface RefCursorSupport extends Service
Contract for JDBC REF_CURSOR support.
Since:
4.3
  • Method Details

    • registerRefCursorParameter

      void registerRefCursorParameter(CallableStatement statement, int position)
      Register a parameter capable of returning a ResultSet *by position*.
      Parameters:
      statement - The callable statement.
      position - The bind position at which to register the output param.
    • registerRefCursorParameter

      void registerRefCursorParameter(CallableStatement statement, String name)
      Register a parameter capable of returning a ResultSet *by name*.
      Parameters:
      statement - The callable statement.
      name - The parameter name (for drivers which support named parameters).
    • getResultSet

      ResultSet getResultSet(CallableStatement statement, int position)
      Given a callable statement previously processed by registerRefCursorParameter(CallableStatement, int), extract the ResultSet.
      Parameters:
      statement - The callable statement.
      position - The bind position at which to register the output param.
      Returns:
      The extracted result set.
    • getResultSet

      ResultSet getResultSet(CallableStatement statement, String name)
      Given a callable statement previously processed by registerRefCursorParameter(CallableStatement, String), extract the ResultSet.
      Parameters:
      statement - The callable statement.
      name - The parameter name (for drivers which support named parameters).
      Returns:
      The extracted result set.