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

/**
 * ErrorJmsService generated by UDA, 16-mar-2023 16:37:34.
 * @author UDA
 */

public interface ErrorJmsService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


