Class StandardRefCursorSupport
- java.lang.Object
-
- org.hibernate.engine.jdbc.cursor.internal.StandardRefCursorSupport
-
- All Implemented Interfaces:
Serializable
,RefCursorSupport
,Service
public class StandardRefCursorSupport extends Object implements RefCursorSupport
Standard implementation of RefCursorSupport- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StandardRefCursorSupport(JdbcServices jdbcServices)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSet
getResultSet(CallableStatement statement, int position)
Given a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, int)
, extract theResultSet
.ResultSet
getResultSet(CallableStatement statement, String name)
Given a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(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*.static boolean
supportsRefCursors(DatabaseMetaData meta)
Does this JDBC metadata indicate that the driver defines REF_CURSOR support?
-
-
-
Constructor Detail
-
StandardRefCursorSupport
public StandardRefCursorSupport(JdbcServices jdbcServices)
-
-
Method Detail
-
registerRefCursorParameter
public void registerRefCursorParameter(CallableStatement statement, int position)
Description copied from interface:RefCursorSupport
Register a parameter capable of returning aResultSet
*by position*.- Specified by:
registerRefCursorParameter
in interfaceRefCursorSupport
- Parameters:
statement
- The callable statement.position
- The bind position at which to register the output param.
-
registerRefCursorParameter
public void registerRefCursorParameter(CallableStatement statement, String name)
Description copied from interface:RefCursorSupport
Register a parameter capable of returning aResultSet
*by name*.- Specified by:
registerRefCursorParameter
in interfaceRefCursorSupport
- Parameters:
statement
- The callable statement.name
- The parameter name (for drivers which support named parameters).
-
getResultSet
public ResultSet getResultSet(CallableStatement statement, int position)
Description copied from interface:RefCursorSupport
Given a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, int)
, extract theResultSet
.- Specified by:
getResultSet
in interfaceRefCursorSupport
- Parameters:
statement
- The callable statement.position
- The bind position at which to register the output param.- Returns:
- The extracted result set.
-
getResultSet
public ResultSet getResultSet(CallableStatement statement, String name)
Description copied from interface:RefCursorSupport
Given a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, String)
, extract theResultSet
.- Specified by:
getResultSet
in interfaceRefCursorSupport
- Parameters:
statement
- The callable statement.name
- The parameter name (for drivers which support named parameters).- Returns:
- The extracted result set.
-
supportsRefCursors
public static boolean supportsRefCursors(DatabaseMetaData meta)
Does this JDBC metadata indicate that the driver defines REF_CURSOR support?- Parameters:
meta
- The JDBC metadata- Returns:
true
if the metadata indicates that the driver defines REF_CURSOR support
-
-