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.InformeSocial;
import com.ejie.ad74a.model.Informes;

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

public interface InformeSocialDao {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

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

	public Informes addInformeInformeSocial(Informes informes);

}
