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

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

public interface MaestroTipoAlarmaService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


