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.Alpha2
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;

/**
 * Group of mixed Output references representing outcomes of the individual statements executed
 * (procedure, anonymous procedure block, etc).  Each Output may be either a {@link ResultSetOutput}
 * or {@link UpdateCountOutput}.  This allows consuming the results directly from JDBC's
 * mixed result-set/update-count while being easier to work with.
 *
 * @author Steve Ebersole
 */
public interface Outputs {
	/**
	 * Retrieve the current Output object.
	 *
	 * @return The current Output object.  Can be {@code null}
	 */
	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.
	 */
	boolean goToNext();

	/**
	 * Eagerly release any resources held by this Outputs.
	 */
	void release();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy