Interface RefCursorSupport
-
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
StandardRefCursorSupport
public interface RefCursorSupport extends Service
Contract for JDBC REF_CURSOR support.- Since:
- 4.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResultSet
getResultSet(CallableStatement statement, int position)
Given a callable statement previously processed byregisterRefCursorParameter(CallableStatement, int)
, extract theResultSet
.ResultSet
getResultSet(CallableStatement statement, String name)
Given a callable statement previously processed byregisterRefCursorParameter(CallableStatement, String)
, extract theResultSet
.void
registerRefCursorParameter(CallableStatement statement, int position)
Register a parameter capable of returning aResultSet
*by position*.void
registerRefCursorParameter(CallableStatement statement, String name)
Register a parameter capable of returning aResultSet
*by name*.
-
-
-
Method Detail
-
registerRefCursorParameter
void registerRefCursorParameter(CallableStatement statement, int position)
Register a parameter capable of returning aResultSet
*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 aResultSet
*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 byregisterRefCursorParameter(CallableStatement, int)
, extract theResultSet
.- 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 byregisterRefCursorParameter(CallableStatement, String)
, extract theResultSet
.- Parameters:
statement
- The callable statement.name
- The parameter name (for drivers which support named parameters).- Returns:
- The extracted result set.
-
-