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

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

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

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

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

