package com.ejie.aa20b.dao;

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

import com.ejie.aa20b.model.Partepdf;

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

public interface PartePdfDao {

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

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

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

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

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

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

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

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

	byte[] buscaPdf(Partepdf partepdf);

}
