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

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

public interface MaestroTramitesDao {
    
    /**
     * Inserts a single row in the MaestroTramites table.
     *
     * @param maestrotramites MaestroTramites
     * @return MaestroTramites
     */
    MaestroTramites add(MaestroTramites maestrotramites);

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

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

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

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

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

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

