package com.ejie.ab63.dao;

import java.util.List;

import com.ejie.ab63.model.Aseo;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6325s00Dao  
 * 
 *  
 */

public interface AseoDao {

	/**
	 * Inserts a single row in the Ab6325s00 table.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 * @return Ab6325s00
	 */
	Aseo add(Aseo ab6325s00);

	/**
	 * Updates a single row in the Ab6325s00 table.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 * @return Ab6325s00
	 */
	Aseo update(Aseo ab6325s00);

	/**
	 * Finds a single row in the Ab6325s00 table.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 * @return Ab6325s00
	 */
	Aseo find(Aseo ab6325s00);

	/**
	 * Removes a single row in the Ab6325s00 table.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 */
	void remove(Aseo ab6325s00);

	/**
	 * Finds a List of rows in the Ab6325s00 table.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<Aseo> findAll(Aseo ab6325s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab6325s00 table using like.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<Aseo> findAllLike(Aseo ab6325s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6325s00 table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

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

	/**
	 * Counts rows in the Ab6325s00 table.
	 *
	 * @param ab6325s00
	 *            Ab6325s00
	 * @return Long
	 */
	Long findAllCount(Aseo ab6325s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6325s00>>
	 */
	List<TableRowDto<Aseo>> reorderSelection(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param searchAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6325s00>>
	 */
	List<TableRowDto<Aseo>> search(Aseo filterAb6325s00, Aseo searchAb6325s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6325s00 table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6325s00>>
	 */
	List<JerarquiaDto<Aseo>> findAllLikeJerarquia(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6325s00>>
	 */
	List<TableRowDto<Aseo>> findAllChild(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto);

	Long getTotalUnidadesResumen(Integer idEstablecimiento);

	Long getTotalUnidadesDetalle(Integer idEstablecimiento);

}
