package com.ejie.ad74a.dao;

import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

import com.ejie.ad74a.model.DocTemporales;

/**
 * DocTemporalesDao generated by UDA, 26-jul-2023 9:44:11.
 * @author UDA
 */

public interface DocTemporalesDao {
    
    /**
     * Inserts a single row in the DocTemporales table.
     *
     * @param doctemporales DocTemporales
     * @return DocTemporales
     */
    DocTemporales add(DocTemporales doctemporales);

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

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

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

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

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

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

