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.math.BigDecimal;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ejie.ad74a.model.Iprem;

/**
 * IpremService generated by UDA, 04-oct-2023 15:51:45.
 * 
 * @author UDA
 */

public interface IpremService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

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

	BigDecimal getByAnio79(Iprem iprem);

	List<Iprem> getAnioIPREMList();

	Iprem getMaxIprem();

	Iprem getIpremActual();

	Iprem getIpremAnio(Long anio);

}
