package com.ejie.ab63.service;

import java.util.List;

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

/**
 * Ab6325s00Service  
 * 
 *  
 */

public interface AseoService {

	/**
	 * 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);

	/**
	 * Deletes 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<Ab6325s00>
	 */
	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<Ab6325s00>
	 */
	List<Aseo> findAllLike(Aseo ab6325s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

	/**
	 * Filter method in the Ab6325s00 table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6325s00>
	 */
	JQGridResponseDto<Aseo> filter(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Ab6325s00 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);

	/**
	 * Reorder the selection made in Ab6325s00 table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Ab6325s00 table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<JerarquiaDto<Ab6325s00>>
	 */
	JQGridResponseDto<JerarquiaDto<Aseo>> jerarquia(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Ab6325s00 table.
	 *
	 * @param filterAb6325s00
	 *            Ab6325s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return JQGridResponseDto<JerarquiaDto<Ab6325s00>>
	 */
	JQGridResponseDto<JerarquiaDto<Aseo>> jerarquiaChildren(Aseo filterAb6325s00, JQGridRequestDto jqGridRequestDto);

	Aseo save(Aseo ab6325s00);

	void addMasivo(List<Aseo> listaAseos);

	Long getTotalUnidadesResumen(Integer idEstablecimiento);

	Long getTotalUnidadesDetalle(Integer idEstablecimiento);
}
