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

/**
 * PerfilesDao generated by UDA, 10-feb-2023 12:13:19.
 * 
 * @author UDA
 */

public interface PerfilesDao {

	/**
	 * Inserts a single row in the Perfiles table.
	 *
	 * @param perfiles Perfiles
	 * @return Perfiles
	 */
	Perfiles add(Perfiles perfiles);

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

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

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

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

	/**
	 * Finds rows in the Perfiles table using like.
	 *
	 * @param perfiles        Perfiles
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith      Boolean
	 * @return List
	 */
	List<Perfiles> findAllLike(Perfiles perfiles, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Perfiles table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */
	void removeMultiple(TableRequestDto tableRequestDto);

	/**
	 * Counts rows in the Perfiles table using like.
	 *
	 * @param perfiles   Perfiles
	 * @param startsWith Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Perfiles perfiles, Boolean startsWith);

	/**
	 * Counts rows in the Perfiles table.
	 *
	 * @param perfiles Perfiles
	 * @return Long
	 */
	Long findAllCount(Perfiles perfiles);

	/**
	 * Reorder selection.
	 *
	 * @param filterPerfiles  Perfiles
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith      Boolean
	 * @return List<TableRowDto<Perfiles>>
	 */
	List<TableRowDto<Perfiles>> reorderSelection(Perfiles filterPerfiles, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterPerfiles  Perfiles
	 * @param searchPerfiles  Perfiles
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith      Boolean
	 * @return List<TableRowDto<Perfiles>>
	 */
	List<TableRowDto<Perfiles>> search(Perfiles filterPerfiles, Perfiles searchPerfiles,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Perfiles table.
	 *
	 * @param filterPerfiles  Perfiles
	 * @param tableRequestDto TableRequestDto
	 * @return List<JerarquiaDto<Perfiles>>
	 */
	List<JerarquiaDto<Perfiles>> findAllLikeJerarquia(Perfiles filterPerfiles, TableRequestDto tableRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterPerfiles  Perfiles
	 * @param tableRequestDto TableRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(Perfiles filterPerfiles, TableRequestDto tableRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterPerfiles  Perfiles
	 * @param tableRequestDto TableRequestDto
	 * @return List<TableRowDto<Perfiles>>
	 */
	List<TableRowDto<Perfiles>> findAllChild(Perfiles filterPerfiles, TableRequestDto tableRequestDto);

	/**
	 * Exporta Datos al clipBoard
	 *
	 */
	List<Perfiles> getMultiple(Perfiles filterPerfiles, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Updates a single row in the Perfiles table.
	 *
	 * @param perfiles Perfiles
	 * @return Perfiles
	 */
	Perfiles updatePerfil(Perfiles perfiles);

	Perfiles updateBloquePerfilesPisosTut(Perfiles perfiles);

	Perfiles updatePisoTutelado(Perfiles perfiles);

}
