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.MaestroTramites;

/**
 * MaestroTramitesService generated by UDA, 22-mar-2023 17:10:15.
 * @author UDA
 */

public interface MaestroTramitesService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


