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

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

package com.jpattern.orm.query;

import java.util.List;

/**
 * 
 * @author Francesco Cina
 *
 * 10/lug/2011
 */
public interface IDelete extends IRenderableSqlObject {
	
	/**
	 * Create or modify the "WHERE" clause of the statement.
	 * @return
	 */
	IExpression 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.
	 */
	IDelete setQueryTimeout(int queryTimeout);

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

}