package com.ejie.ab04b.dao;

import java.util.List;

import com.ejie.ab04b.model.RegimenJuridico;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * RegimenJuridicoDao generated by UDA, 27-sep-2016 13:26:09.
 * 
 * @author UDA
 */

public interface RegimenJuridicoDao {

	/**
	 * Inserts a single row in the RegimenJuridico table.
	 * 
	 *  regimenjuridico
	 *            RegimenJuridico
	 *  RegimenJuridico
	 *
	 * @param regimenjuridico the regimenjuridico
	 * @return the regimen juridico
	 */
	RegimenJuridico add(RegimenJuridico regimenjuridico);

	/**
	 * Updates a single row in the RegimenJuridico table.
	 * 
	 *  regimenjuridico
	 *            RegimenJuridico
	 *  RegimenJuridico
	 *
	 * @param regimenjuridico the regimenjuridico
	 * @return the regimen juridico
	 */
	RegimenJuridico update(RegimenJuridico regimenjuridico);

	/**
	 * Finds a single row in the RegimenJuridico table.
	 * 
	 *  regimenjuridico
	 *            RegimenJuridico
	 *  RegimenJuridico
	 *
	 * @param regimenjuridico the regimenjuridico
	 * @return the regimen juridico
	 */
	RegimenJuridico find(RegimenJuridico regimenjuridico);

	/**
	 * Removes a single row in the RegimenJuridico table.
	 * 
	 *  regimenjuridico
	 *            RegimenJuridico
	 *
	 * @param regimenjuridico the regimenjuridico
	 */
	void remove(RegimenJuridico regimenjuridico);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

}
