public interface RefCursorSupport extends Service
Contract for JDBC REF_CURSOR support.
Modifier and Type | Method and Description |
---|---|
ResultSet |
getResultSet(CallableStatement statement,
int position)
Given a callable statement previously processed by
registerRefCursorParameter(java.sql.CallableStatement, int) ,
extract the ResultSet . |
ResultSet |
getResultSet(CallableStatement statement,
String name)
Given a callable statement previously processed by
registerRefCursorParameter(java.sql.CallableStatement, String) ,
extract the ResultSet . |
void |
registerRefCursorParameter(CallableStatement statement,
int position)
Register a parameter capable of returning a
ResultSet by position. |
void |
registerRefCursorParameter(CallableStatement statement,
String name)
Register a parameter capable of returning a
ResultSet by name. |
void registerRefCursorParameter(CallableStatement statement, int position)
Register a parameter capable of returning a ResultSet
by position.
statement
- The callable statement.position
- The bind position at which to register the output param.void registerRefCursorParameter(CallableStatement statement, String name)
Register a parameter capable of returning a ResultSet
by name.
statement
- The callable statement.name
- The parameter name (for drivers which support named parameters).ResultSet getResultSet(CallableStatement statement, int position)
Given a callable statement previously processed by registerRefCursorParameter(java.sql.CallableStatement, int)
,
extract the ResultSet
.
statement
- The callable statement.position
- The bind position at which to register the output param.ResultSet getResultSet(CallableStatement statement, String name)
Given a callable statement previously processed by registerRefCursorParameter(java.sql.CallableStatement, String)
,
extract the ResultSet
.
statement
- The callable statement.name
- The parameter name (for drivers which support named parameters).Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.