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

/**
 * MaestroMotQuejaDao generated by UDA, 02-oct-2023 13:02:27.
 * @author UDA
 */

public interface MaestroMotQuejaDao {
    
    /**
     * Inserts a single row in the MaestroMotQueja table.
     *
     * @param maestromotqueja MaestroMotQueja
     * @return MaestroMotQueja
     */
    MaestroMotQueja add(MaestroMotQueja maestromotqueja);

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

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

    /**
     * Removes a single row in the MaestroMotQueja table.
     *
     * @param maestromotqueja MaestroMotQueja
     */
    void remove(MaestroMotQueja maestromotqueja);

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

	/**
     * Finds rows in the MaestroMotQueja table using like.
     *
     * @param maestromotqueja MaestroMotQueja
     * @param tableRequestDto TableRequestDto
     * @param startsWith Boolean
     * @return List
     */
	List<MaestroMotQueja> findAllLike(MaestroMotQueja maestromotqueja, TableRequestDto tableRequestDto, Boolean startsWith);
	
	
	/*
	 * OPERACIONES RUP_TABLE
	 */
	 
	/**
	 * Filter in the MaestroMotQueja table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */	
	 void removeMultiple(TableRequestDto tableRequestDto);
	
	
    /**
     * Counts rows in the MaestroMotQueja table using like.
     *
     * @param maestromotqueja MaestroMotQueja
     * @param startsWith Boolean
     * @return Long
     */
    Long findAllLikeCount(MaestroMotQueja maestromotqueja, Boolean startsWith);
    
    /**
     * Counts rows in the MaestroMotQueja table.
     *
     * @param maestromotqueja MaestroMotQueja
     * @return Long
     */
    Long findAllCount(MaestroMotQueja maestromotqueja);
    
    /**
	 * Reorder selection.
	 *
	 * @param filterMaestroMotQueja MaestroMotQueja
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<MaestroMotQueja>>
	 */	
    List<TableRowDto<MaestroMotQueja>> reorderSelection(MaestroMotQueja filterMaestroMotQueja, TableRequestDto tableRequestDto, Boolean startsWith);
    
     /**
	 * Searches in the Usuario table.
	 *
	 * @param filterMaestroMotQueja MaestroMotQueja
	 * @param searchMaestroMotQueja MaestroMotQueja
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<MaestroMotQueja>>	 
	 */	
    List<TableRowDto<MaestroMotQueja>> search(MaestroMotQueja filterMaestroMotQueja, MaestroMotQueja searchMaestroMotQueja, TableRequestDto tableRequestDto, Boolean startsWith);

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

