public class StandardRefCursorSupport extends Object implements RefCursorSupport
| Constructor and Description |
|---|
StandardRefCursorSupport() |
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
getResultSet(CallableStatement statement,
int position)
Given a callable statement previously processed by
RefCursorSupport.registerRefCursorParameter(java.sql.CallableStatement, int),
extract the ResultSet. |
ResultSet |
getResultSet(CallableStatement statement,
String name)
Given a callable statement previously processed by
RefCursorSupport.registerRefCursorParameter(java.sql.CallableStatement, String),
extract the ResultSet. |
void |
injectJdbcServices(JdbcServices jdbcServices)
Hook for service registry to be able to inject JdbcServices
|
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*. |
static boolean |
supportsRefCursors(DatabaseMetaData meta)
Does this JDBC metadata indicate that the driver defines REF_CURSOR support?
|
public void injectJdbcServices(JdbcServices jdbcServices)
jdbcServices - The JdbcServices servicepublic void registerRefCursorParameter(CallableStatement statement, int position)
RefCursorSupportResultSet *by position*.registerRefCursorParameter in interface RefCursorSupportstatement - The callable statement.position - The bind position at which to register the output param.public void registerRefCursorParameter(CallableStatement statement, String name)
RefCursorSupportResultSet *by name*.registerRefCursorParameter in interface RefCursorSupportstatement - The callable statement.name - The parameter name (for drivers which support named parameters).public ResultSet getResultSet(CallableStatement statement, int position)
RefCursorSupportRefCursorSupport.registerRefCursorParameter(java.sql.CallableStatement, int),
extract the ResultSet.getResultSet in interface RefCursorSupportstatement - The callable statement.position - The bind position at which to register the output param.public ResultSet getResultSet(CallableStatement statement, String name)
RefCursorSupportRefCursorSupport.registerRefCursorParameter(java.sql.CallableStatement, String),
extract the ResultSet.getResultSet in interface RefCursorSupportstatement - The callable statement.name - The parameter name (for drivers which support named parameters).public static boolean supportsRefCursors(DatabaseMetaData meta)
meta - The JDBC metadatatrue if the metadata indicates that the driver defines REF_CURSOR supportCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.