package com.ejie.ab79.dao.actuaciones;

import com.ejie.ab79.model.actuaciones.DesResAct;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

/**
 * DesResActDao  
 *  
 */

public interface DesResActDao {
    
    /**
     * Inserts a single row in the DesResAct table.
     *
     * @param desresact DesResAct
     * @return DesResAct
     */
    DesResAct add(DesResAct desresact);

    /**
     * Updates a single row in the DesResAct table.
     *
     * @param desresact DesResAct
     * @return DesResAct
     */
    DesResAct update(DesResAct desresact);

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

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

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

	/**
     * Finds rows in the DesResAct table using like.
     *
     * @param desresact DesResAct
     * @param tableRequestDto TableRequestDto
     * @param startsWith Boolean
     * @return List
     */
	List<DesResAct> findAllLike(DesResAct desresact, TableRequestDto tableRequestDto, Boolean startsWith);
	
	
	/*
	 * OPERACIONES RUP_TABLE
	 */
	 
	/**
	 * Filter in the DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 */	
	 void removeMultiple(DesResAct filterDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
	
	
    /**
     * Counts rows in the DesResAct table using like.
     *
     * @param desresact DesResAct
     * @param startsWith Boolean
     * @return Long
     */
    Long findAllLikeCount(DesResAct desresact, Boolean startsWith);
    
    /**
     * Counts rows in the DesResAct table.
     *
     * @param desresact DesResAct
     * @return Long
     */
    Long findAllCount(DesResAct desresact);
    
    /**
	 * Reorder selection.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<DesResAct>>
	 */	
    List<TableRowDto<DesResAct>> reorderSelection(DesResAct filterDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
    
     /**
	 * Searches in the Usuario table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param searchDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<DesResAct>>	 
	 */	
    List<TableRowDto<DesResAct>> search(DesResAct filterDesResAct, DesResAct searchDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);

    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
    
    /**
	 * Filter in the hierarchical DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @return List<JerarquiaDto<DesResAct>>
	 */	
	List<JerarquiaDto<DesResAct>> findAllLikeJerarquia(DesResAct filterDesResAct, TableRequestDto tableRequestDto);
	
	/**
	 * Count rows in hierarchy
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @return Long
	 */	
	Long findAllLikeCountJerarquia(DesResAct filterDesResAct, TableRequestDto tableRequestDto);
	
	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @return List<TableRowDto<DesResAct>>
	 */	
	List<TableRowDto<DesResAct>> findAllChild(DesResAct filterDesResAct, TableRequestDto tableRequestDto);
	
	/**
    * Exporta Datos al clipBoard
    *
    */
    List<DesResAct> getMultiple(DesResAct filterDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
	
}

