Package org.hibernate.result


package org.hibernate.result
Defines support for dealing with results returned from database via JDBC.

Accounts for mixed result sets and update counts, hiding the complexity of how this is exposed via the JDBC API.

     Outputs outputs = ...;
     while ( outputs.goToNext() ) {
         final Output output = outputs.getCurrent();
         if ( rtn.isResultSet() ) {
             handleResultSetOutput( (ResultSetOutput) output );
         }
         else {
             handleUpdateCountOutput( (UpdateCountOutput) output );
         }
     }
 
  • Class
    Description
     
    Common contract for individual return objects which can be either results (ResultSetOutput) or update counts (UpdateCountOutput).
    Represents the outputs of executing a JDBC statement accounting for mixing of result sets and update counts hiding the complexity of how this is exposed in the JDBC API.
    Models a return that is a result set.
    Models a return that is an update count (count of rows affected)