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

org.hibernate.engine.RowSelection Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
//$Id: RowSelection.java 9299 2006-02-16 22:51:00Z steveebersole $
package org.hibernate.engine;

/**
 * Represents a selection of rows in a JDBC ResultSet
 * @author Gavin King
 */
public final class RowSelection {
	private Integer firstRow;
	private Integer maxRows;
	private Integer timeout;
	private Integer fetchSize;

	public void setFirstRow(Integer firstRow) {
		this.firstRow = firstRow;
	}

	public Integer getFirstRow() {
		return firstRow;
	}

	public void setMaxRows(Integer maxRows) {
		this.maxRows = maxRows;
	}

	public Integer getMaxRows() {
		return maxRows;
	}

	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
	}

	public Integer getTimeout() {
		return timeout;
	}

	public Integer getFetchSize() {
		return fetchSize;
	}

	public void setFetchSize(Integer fetchSize) {
		this.fetchSize = fetchSize;
	}

	public boolean definesLimits() {
		return maxRows != null ||
	           ( firstRow != null && firstRow.intValue() <= 0 );
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy