All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.result.package-info Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
package org.hibernate.result;

/**
 * Defines support for dealing with database results, accounting for mixed result sets and update counts hiding the
 * complexity (IMO) of how this is exposed in the JDBC API.
 *
 * {@link Result} represents the overall group of results.
 *
 * {@link Return} represents the mixed individual outcomes, which might be either a {@link ResultSetReturn} or
 * a {@link UpdateCountReturn}.
 *
 * 
 *     Result result = ...;
 *     while ( result.hasMoreReturns() ) {
 *         final Return rtn = result.getNextReturn();
 *         if ( rtn.isResultSet() ) {
 *             handleResultSetReturn( (ResultSetReturn) rtn );
 *         }
 *         else {
 *             handleUpdateCountReturn( (UpdateCountReturn) rtn );
 *         }
 *     }
 * 
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy