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

/**
 * MaestroTareasDao generated by UDA, 22-mar-2023 17:10:15.
 * @author UDA
 */

public interface MaestroTareasDao {
    
    /**
     * Inserts a single row in the MaestroTareas table.
     *
     * @param maestrotareas MaestroTareas
     * @return MaestroTareas
     */
    MaestroTareas add(MaestroTareas maestrotareas);

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

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

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

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

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

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

