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

/**
 * MaestroSubtpoLlamadaService generated by UDA, 10-jul-2023 9:33:38.
 * @author UDA
 */

public interface MaestroSubtpoLlamadaService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


