package com.ejie.aa20b.dao;

import com.ejie.x38.dto.Pagination;
import java.util.List;

import com.ejie.aa20b.model.Partefirma;

/**
 * PartefirmaDao generated by UDA, 13-ene-2015 13:00:39.
 * 
 * @author UDA
 */

public interface PartefirmaDao {

	/**
	 * Inserts a single row in the Partefirma table.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @return Partefirma
	 */
	Partefirma add(Partefirma Partefirma);

	/**
	 * Updates a single row in the Partefirma table.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @return Partefirma
	 */
	Partefirma update(Partefirma Partefirma);

	/**
	 * Finds a single row in the Partefirma table.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @return Partefirma
	 */
	Partefirma find(Partefirma Partefirma);

	/**
	 * Deletes a single row in the Partefirma table.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @return
	 */
	void remove(Partefirma Partefirma);

	/**
	 * Finds a List of rows in the Partefirma table.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @param pagination
	 *            Pagination
	 * @return List
	 */
	List<Partefirma> findAll(Partefirma Partefirma, Pagination pagination);

	/**
	 * Counts rows in the Partefirma table.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @return Long
	 */
	Long findAllCount(Partefirma Partefirma);

	/**
	 * Finds rows in the Partefirma table using like.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @param pagination
	 *            Pagination
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<Partefirma> findAllLike(Partefirma Partefirma, Pagination pagination,
			Boolean startsWith);

	/**
	 * Counts rows in the Partefirma table using like.
	 * 
	 * @param Partefirma
	 *            Partefirma
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Partefirma Partefirma, Boolean startsWith);

	byte[] buscaFirma(Partefirma Partefirma);

}
