Accounts for mixed result sets and update counts, hiding the complexity of how this is exposed via the JDBC API.
org.hibernate.result.Outputs represents the overall group of results.
org.hibernate.result.Output represents the mixed individual outcomes,
which might be either a org.hibernate.result.ResultSetOutput or
a org.hibernate.result.UpdateCountOutput .
Outputs outputs = ...;
while ( outputs.goToNext() ) {
final Output output = outputs.getCurrent();
if ( rtn.isResultSet() ) {
handleResultSetOutput( (ResultSetOutput) output );
}
else {
handleUpdateCountOutput( (UpdateCountOutput) output );
}
}
| Modifier and Type | Interface and Description |
|---|---|
| public interface | Output
Common contract for individual return objects which can be either results ( |
| public interface | 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. |
| public interface | ResultSetOutput
Models a return that is a result set. |
| public interface | UpdateCountOutput
Models a return that is an update count (count of rows affected) |
| Modifier and Type | Class and Description |
|---|---|
| public class |