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.Avisos;
import com.ejie.ad74a.model.DocuAvisos;

/**
 * AvisosDao generated by UDA, 12-may-2023 11:16:38.
 * 
 * @author UDA
 */

public interface AvisosDao {

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

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

	Avisos updateProcesado(Avisos avisos);

	Avisos procesarAvisos(Avisos avisos);

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

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

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

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

	List<Avisos> findAllLikeConUsuario(Avisos avisos, TableRequestDto tableRequestDto, Boolean startsWith,
			Integer usuario);

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

	Long findAllLikeCountConUsuario(Avisos avisos, Boolean startsWith, Integer usuario);

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

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

	List<Avisos> filterComplete(Avisos filterAvisos, TableRequestDto tableRequestDto);

	Avisos aportarExpediente(Avisos aviso);

	Avisos solicitarPS(Avisos aviso);

}
