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

com.jpattern.orm.query.DeleteQuery 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.query.clause.Where;

/**
 * 
 * @author Francesco Cina
 *
 * 10/lug/2011
 */
public interface DeleteQuery extends IQueryRoot, IRenderableSqlObject {

	/**
	 * Create or modify the "WHERE" clause of the statement.
	 * @return
	 */
	Where where();

	/**
	 * Perform the update and return the number of affected rows.
	 * @return
	 */
	int perform();

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

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

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

}