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

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

public interface AlarmasService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


