package com.ejie.ad74a.service;

import java.math.BigDecimal;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ejie.ad74a.model.DatosEconomicos;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * DatosEconomicosService generated by UDA, 29-sep-2023 12:57:12.
 * 
 * @author UDA
 */

public interface DatosEconomicosService {

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

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

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

	/**
	 * Deletes a single row in the DatosEconomicos table.
	 *
	 * @param datosEconomicos DatosEconomicos
	 */
	void remove(DatosEconomicos datosEconomicos);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the DatosEconomicos table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */
	void removeMultiple(TableRequestDto tableRequestDto);

	/**
	 * Filter method in the DatosEconomicos table.
	 *
	 * @param filterDatosEconomicos DatosEconomicos
	 * @param tableRequestDto       TableRequestDto
	 * @param startsWith            Boolean
	 * @return TableResponseDto<DatosEconomicos>
	 */
	TableResponseDto<DatosEconomicos> filter(DatosEconomicos filterDatosEconomicos, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the DatosEconomicos table.
	 *
	 * @param filterDatosEconomicos DatosEconomicos
	 * @param searchDatosEconomicos DatosEconomicos
	 * @param tableRequestDto       TableRequestDto
	 * @param startsWith            Boolean
	 * @return List<TableRowDto<DatosEconomicos>>
	 */
	List<TableRowDto<DatosEconomicos>> search(DatosEconomicos filterDatosEconomicos,
			DatosEconomicos searchDatosEconomicos, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in DatosEconomicos table.
	 *
	 * @param filterDatosEconomicos DatosEconomicos
	 * @param tableRequestDto       TableRequestDto
	 * @param startsWith            Boolean
	 * @return Object
	 */
	Object reorderSelection(DatosEconomicos filterDatosEconomicos, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the DatosEconomicos table.
	 *
	 * @param filterDatosEconomicos DatosEconomicos
	 * @param tableRequestDto       TableRequestDto
	 * @param startsWith            Boolean
	 * @return TableResponseDto<JerarquiaDto<DatosEconomicos>>
	 */
	TableResponseDto<JerarquiaDto<DatosEconomicos>> jerarquia(DatosEconomicos filterDatosEconomicos,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the DatosEconomicos
	 * table.
	 *
	 * @param filterDatosEconomicos DatosEconomicos
	 * @param tableRequestDto       TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<DatosEconomicos>>
	 */
	TableResponseDto<JerarquiaDto<DatosEconomicos>> jerarquiaChildren(DatosEconomicos filterDatosEconomicos,
			TableRequestDto tableRequestDto);

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

	/**
	 * Exporta Datos en su formato
	 *
	 */
	void generateReport(DatosEconomicos filterDatosEconomicos, String[] columns, String[] columnsName, String fileName,
			String sheetTitle, TableRequestDto tableRequestDto, HttpServletRequest request,
			HttpServletResponse response);

	BigDecimal getNivelRecurso(DatosEconomicos datosEconomicos);

}
