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
represents the overall group of results.Output
represents the mixed individual outcomes, which might be either aResultSetOutput
or aUpdateCountOutput
.
Outputs outputs = ...; while ( outputs.goToNext() ) { final Output output = outputs.getCurrent(); if ( rtn.isResultSet() ) { handleResultSetOutput( (ResultSetOutput) output ); } else { handleUpdateCountOutput( (UpdateCountOutput) output ); } }
-
Interface Summary Interface Description Output Common contract for individual return objects which can be either results (ResultSetOutput
) or update counts (UpdateCountOutput
).Outputs 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.ResultSetOutput Models a return that is a result set.UpdateCountOutput Models a return that is an update count (count of rows affected) -
Exception Summary Exception Description NoMoreReturnsException