package com.ejie.ab04b.dao.nora;

import java.util.List;

import com.ejie.ab04b.model.nora.Pais;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * PaisDao generated by UDA, 13-Jan-2017 12:55:51.
 * 
 * @author UDA
 */

public interface PaisDao {

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

	/**
	 * Finds a List of rows in the Pais table.
	 * 
	 *  pais
	 *            Pais
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param pais the pais
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<Pais> findAll(Pais pais, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Pais table using like.
	 * 
	 *  pais
	 *            Pais
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List
	 *
	 * @param pais the pais
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<Pais> findAllLike(Pais pais, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Pais table using like.
	 * 
	 *  pais
	 *            Pais
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param pais the pais
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(Pais pais, Boolean startsWith);

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

	/**
	 * Reorder selection.
	 * 
	 *  filterPais
	 *            Pais
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Pais>>
	 *
	 * @param filterPais the filter pais
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<Pais>> reorderSelection(Pais filterPais, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterPais
	 *            Pais
	 *  searchPais
	 *            Pais
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Pais>>
	 *
	 * @param filterPais the filter pais
	 * @param searchPais the search pais
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<Pais>> search(Pais filterPais, Pais searchPais, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

}
