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

com.jpattern.orm.query.BaseFindQuery Maven / Gradle / Ivy

There is a newer version: 3.5.1
Show newest version
package com.jpattern.orm.query;

import java.util.List;

import com.jpattern.orm.exception.OrmException;

/**
 * 
 * @author Francesco Cina
 *
 * 07/lug/2011
 */
public interface BaseFindQuery extends IRenderableSqlObject, IQueryRoot {

	/**
	 * Return the max rows for this query.
	 * @return
	 */
	int getMaxRows() throws OrmException;

	/**
	 * Set the maximum number of rows to return in the query.
	 * @param maxRows
	 * @return
	 */
	BaseFindQuery setMaxRows(int maxRows) throws OrmException;

	/**
	 * Set the query timeout for the query.
	 */
	BaseFindQuery setQueryTimeout(int queryTimeout);

	/**
	 * Return the query timeout for the query.
	 */
	int getQueryTimeout();

	/**
	 * Append to the list all the values of the expression's elements
	 * @return
	 */
	void appendValues(List values);

}