package com.ejie.ab63.dao;

import java.util.List;

import com.ejie.ab63.model.FactorCompensatorio;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6319s00Dao  
 * 
 *  
 */

public interface FactorCompensatorioDao {

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

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

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

	/**
	 * Removes a single row in the Ab6319s00 table.
	 *
	 * @param ab6319s00
	 *            Ab6319s00
	 */
	void remove(FactorCompensatorio ab6319s00);

	/**
	 * Finds a List of rows in the Ab6319s00 table.
	 *
	 * @param ab6319s00
	 *            Ab6319s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<FactorCompensatorio> findAll(FactorCompensatorio ab6319s00, TableRequestDto tableRequestDto);

	/**
	 * Finds rows in the Ab6319s00 table using like.
	 *
	 * @param ab6319s00
	 *            Ab6319s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<FactorCompensatorio> findAllLike(FactorCompensatorio ab6319s00, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6319s00 table.
	 *
	 * @param filterAb6319s00
	 *            Ab6319s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(FactorCompensatorio filterAb6319s00, TableRequestDto tableRequestDto, Boolean startsWith);

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

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

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6319s00
	 *            Ab6319s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6319s00>>
	 */
	List<TableRowDto<FactorCompensatorio>> reorderSelection(FactorCompensatorio filterAb6319s00,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6319s00
	 *            Ab6319s00
	 * @param searchAb6319s00
	 *            Ab6319s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6319s00>>
	 */
	List<TableRowDto<FactorCompensatorio>> search(FactorCompensatorio filterAb6319s00,
			FactorCompensatorio searchAb6319s00, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6319s00
	 *            Ab6319s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6319s00>>
	 */
	List<TableRowDto<FactorCompensatorio>> findAllChild(FactorCompensatorio filterAb6319s00,
			TableRequestDto tableRequestDto);

}
