package com.ejie.ab79.dao.inspecciones;

import com.ejie.ab79.model.inspecciones.Inspecciones;
import com.ejie.ab79.model.inspecciones.RelExpIns;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

/**
 * RelExpInsDao  
 * 
 *  
 */

public interface RelExpInsDao {

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

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

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

	/**
	 * Finds a List of rows in the RelExpIns table.
	 *
	 * @param relexpins
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List
	 */
	List<RelExpIns> findAll(RelExpIns relexpins, TableRequestDto tableRequestDto);

	/**
	 * Finds rows in the RelExpIns table using like.
	 *
	 * @param relexpins
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<RelExpIns> findAllLike(RelExpIns relexpins, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

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

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

	/**
	 * Reorder selection.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<RelExpIns>>
	 */
	List<TableRowDto<RelExpIns>> reorderSelection(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param searchRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<RelExpIns>>
	 */
	List<TableRowDto<RelExpIns>> search(RelExpIns filterRelExpIns, RelExpIns searchRelExpIns,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List<JerarquiaDto<RelExpIns>>
	 */
	List<JerarquiaDto<RelExpIns>> findAllLikeJerarquia(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List<TableRowDto<RelExpIns>>
	 */
	List<TableRowDto<RelExpIns>> findAllChild(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto);

	/**
	 * Exporta Datos al clipBoard
	 *
	 */
	List<RelExpIns> getMultiple(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

	void removeByInspeccion(Inspecciones inspeccion);

	RelExpIns updateFechaFinInspeccion(RelExpIns relExpIns);

}
