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

/**
 * MaestroMotQuejaService generated by UDA, 02-oct-2023 13:02:27.
 * @author UDA
 */

public interface MaestroMotQuejaService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


