package com.ejie.ad74a.service;


import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ejie.ad74a.model.DocTemporales;

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

public interface DocTemporalesService {

	/**
	 * 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);

	/**
	 * Deletes 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<DocTemporales>
	 */
	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<DocTemporales>
	 */
	List<DocTemporales> findAllLike(DocTemporales docTemporales, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the DocTemporales table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */	
	void removeMultiple(TableRequestDto tableRequestDto);
   
    
	/**
	 * Filter method in the DocTemporales table.
	 *
	 * @param filterDocTemporales DocTemporales
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<DocTemporales>
	 */	
	TableResponseDto<DocTemporales> filter(DocTemporales filterDocTemporales, TableRequestDto tableRequestDto,  Boolean startsWith);
    
    /**
	 * Searches rows in the DocTemporales 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);
    
    /**
	 * Reorder the selection made in DocTemporales table.
	 *
	 * @param filterDocTemporales DocTemporales
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return Object
	 */	
    Object reorderSelection(DocTemporales filterDocTemporales, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
	 
	/**
	 * Finder method in the hierarchical the DocTemporales table.
	 *
	 * @param filterDocTemporales DocTemporales
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<JerarquiaDto<DocTemporales>>
	 */	
	TableResponseDto<JerarquiaDto<DocTemporales>> jerarquia(DocTemporales filterDocTemporales, TableRequestDto tableRequestDto, Boolean startsWith);
	
	/**
	 * Finder method for siblings rows in the hierarchical the DocTemporales table.
	 *
	 * @param filterDocTemporales DocTemporales
	 * @param tableRequestDto TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<DocTemporales>>
	 */	
	TableResponseDto<JerarquiaDto<DocTemporales>> jerarquiaChildren(DocTemporales filterDocTemporales, TableRequestDto tableRequestDto);
    
    /**
    * Exporta Datos al clipBoard
    *
    */
    List<DocTemporales> getMultiple(DocTemporales filterDocTemporales, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /**
	 * Exporta Datos en su formato
	 *
	 */
	void generateReport(DocTemporales filterDocTemporales, String[] columns,String[] columnsName, String fileName, String sheetTitle,
			TableRequestDto tableRequestDto, HttpServletRequest request, HttpServletResponse response);
    
}


