Class StandardRefCursorSupport
java.lang.Object
org.hibernate.engine.jdbc.cursor.internal.StandardRefCursorSupport
- All Implemented Interfaces:
Serializable,RefCursorSupport,Service
Standard implementation of RefCursorSupport
- Author:
- Steve Ebersole
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResultSet(CallableStatement statement, int position) Given a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, int), extract theResultSet.getResultSet(CallableStatement statement, String name) Given a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, String), extract theResultSet.voidregisterRefCursorParameter(CallableStatement statement, int position) Register a parameter capable of returning aResultSet*by position*.voidregisterRefCursorParameter(CallableStatement statement, String name) Register a parameter capable of returning aResultSet*by name*.static booleanDoes this JDBC metadata indicate that the driver defines REF_CURSOR support?
-
Constructor Details
-
StandardRefCursorSupport
-
-
Method Details
-
registerRefCursorParameter
Description copied from interface:RefCursorSupportRegister a parameter capable of returning aResultSet*by position*.- Specified by:
registerRefCursorParameterin interfaceRefCursorSupport- Parameters:
statement- The callable statement.position- The bind position at which to register the output param.
-
registerRefCursorParameter
Description copied from interface:RefCursorSupportRegister a parameter capable of returning aResultSet*by name*.- Specified by:
registerRefCursorParameterin interfaceRefCursorSupport- Parameters:
statement- The callable statement.name- The parameter name (for drivers which support named parameters).
-
getResultSet
Description copied from interface:RefCursorSupportGiven a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, int), extract theResultSet.- Specified by:
getResultSetin interfaceRefCursorSupport- Parameters:
statement- The callable statement.position- The bind position at which to register the output param.- Returns:
- The extracted result set.
-
getResultSet
Description copied from interface:RefCursorSupportGiven a callable statement previously processed byRefCursorSupport.registerRefCursorParameter(CallableStatement, String), extract theResultSet.- Specified by:
getResultSetin interfaceRefCursorSupport- Parameters:
statement- The callable statement.name- The parameter name (for drivers which support named parameters).- Returns:
- The extracted result set.
-
supportsRefCursors
Does this JDBC metadata indicate that the driver defines REF_CURSOR support?- Parameters:
meta- The JDBC metadata- Returns:
trueif the metadata indicates that the driver defines REF_CURSOR support
-