package com.ejie.ab79.dao.actuaciones;

import java.util.List;

import com.ejie.ab79.model.actuaciones.RelActDoc;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * RelActDocDao  
 * 
 *  
 */

public interface RelActDocDao {

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

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

	void removeByIdActuacion(Integer idActuacion);

	RelActDoc updateEnviadoProSan(RelActDoc relActDoc);

	/**
	 * 
	 *
	 * @param idInspeccion
	 *            Integer
	 * 
	 * @return Long
	 */
	Long documentosSinEnviar(Integer idInspeccion);

	/**
	 * Finds a list of rows in the RelActDoc table.
	 *
	 * @param relactdoc
	 *            RelActDoc
	 * 
	 * @return List<RelActDoc>
	 */
	List<RelActDoc> findAllPropuestaSancion(RelActDoc relactdoc);

	void removeByIdDocumentoSubido(RelActDoc relActDoc);
}
