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

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

There is a newer version: 6.6.2.Final
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;

import java.util.List;

/**
 * Models a return that is a result set.
 *
 * @author Steve Ebersole
 */
public interface ResultSetOutput extends Output {
	/**
	 * Consume the underlying {@link java.sql.ResultSet} and return the resulting List.
	 *
	 * @return The consumed ResultSet values.
	 */
	List getResultList();

	/**
	 * Consume the underlying {@link java.sql.ResultSet} with the expectation that there is just a single level of
	 * root returns.
	 *
	 * @return The single result.
	 */
	Object getSingleResult();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy