<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2012-07-26 17:38
 */
interface ComplementpurchasebillreturnsDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Complementpurchasebillreturns 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param complementpurchasebillreturn primary key
 	 */
	public function delete($complementpurchasebillreturnid);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Complementpurchasebillreturns complementpurchasebillreturn
 	 */
	public function insert($complementpurchasebillreturn);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Complementpurchasebillreturns complementpurchasebillreturn
 	 */
	public function update($complementpurchasebillreturn);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByRawmaterialid($value);

	public function queryByRawmaterialprice($value);

	public function queryByRawmaterialamount($value);

	public function queryByRawmaterialdisount($value);

	public function queryByComplementpurchasebillreturntotal($value);


	public function deleteByRawmaterialid($value);

	public function deleteByRawmaterialprice($value);

	public function deleteByRawmaterialamount($value);

	public function deleteByRawmaterialdisount($value);

	public function deleteByComplementpurchasebillreturntotal($value);


}
?>