package com.ejie.ad74a.dao;

import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

import com.ejie.ad74a.model.Alarmas;

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

public interface AlarmasDao {
    
    /**
     * 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);

    /**
     * Removes 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
     */
    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
     */
	List<Alarmas> findAllLike(Alarmas alarmas, TableRequestDto tableRequestDto, Boolean startsWith);
	
	
	/*
	 * OPERACIONES RUP_TABLE
	 */
	 
	/**
	 * Filter in the Alarmas table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */	
	 void removeMultiple(TableRequestDto tableRequestDto);
	
	
    /**
     * Counts rows in the Alarmas table using like.
     *
     * @param alarmas Alarmas
     * @param startsWith Boolean
     * @return Long
     */
    Long findAllLikeCount(Alarmas alarmas, Boolean startsWith);
    
    /**
     * Counts rows in the Alarmas table.
     *
     * @param alarmas Alarmas
     * @return Long
     */
    Long findAllCount(Alarmas alarmas);
    
    /**
	 * Reorder selection.
	 *
	 * @param filterAlarmas Alarmas
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<Alarmas>>
	 */	
    List<TableRowDto<Alarmas>> reorderSelection(Alarmas filterAlarmas, TableRequestDto tableRequestDto, Boolean startsWith);
    
     /**
	 * Searches in the Usuario 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);

    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
    
    /**
	 * Filter in the hierarchical Alarmas table.
	 *
	 * @param filterAlarmas Alarmas
	 * @param tableRequestDto TableRequestDto
	 * @return List<JerarquiaDto<Alarmas>>
	 */	
	List<JerarquiaDto<Alarmas>> findAllLikeJerarquia(Alarmas filterAlarmas, TableRequestDto tableRequestDto);
	
	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAlarmas Alarmas
	 * @param tableRequestDto TableRequestDto
	 * @return Long
	 */	
	Long findAllLikeCountJerarquia(Alarmas filterAlarmas, TableRequestDto tableRequestDto);
	
	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAlarmas Alarmas
	 * @param tableRequestDto TableRequestDto
	 * @return List<TableRowDto<Alarmas>>
	 */	
	List<TableRowDto<Alarmas>> findAllChild(Alarmas filterAlarmas, TableRequestDto tableRequestDto);
	
	/**
    * Exporta Datos al clipBoard
    *
    */
    List<Alarmas> getMultiple(Alarmas filterAlarmas, TableRequestDto tableRequestDto, Boolean startsWith);
	
}

