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

/**
 * RecMovilEmerService generated by UDA, 05-jul-2023 13:01:04.
 * @author UDA
 */

public interface RecMovilEmerService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


