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

org.hibernate.result.Outputs Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.result;

/**
 * Represents the outputs of executing a JDBC statement accounting for mixing of result sets and update counts
 * hiding the complexity (IMO) of how this is exposed in the JDBC API.
 * 

* The outputs are exposed as a group of {@link Output} objects, each representing a single result set or update count. * Conceptually, Result presents those Returns as an iterator. * * @author Steve Ebersole */ public interface Outputs { /** * Retrieve the current Output object. * * @return The current Output object. Can be {@code null} */ public Output getCurrent(); /** * Go to the next Output object (if any), returning an indication of whether there was another (aka, will * the next call to {@link #getCurrent()} return {@code null}? * * @return {@code true} if the next call to {@link #getCurrent()} will return a non-{@code null} value. */ public boolean goToNext(); /** * Eagerly release any resources held by this Outputs. */ public void release(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy