package com.ejie.ab63.service;

import java.util.List;

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

/**
 * Ab6331s00Service  
 * 
 *  
 */

public interface SuiteService {

	/**
	 * Inserts a single row in the Ab6331s00 table.
	 *
	 * @param ab6331s00
	 *            Ab6331s00
	 * @return Ab6331s00
	 */
	Suite add(Suite ab6331s00);

	/**
	 * Updates a single row in the Ab6331s00 table.
	 *
	 * @param ab6331s00
	 *            Ab6331s00
	 * @return Ab6331s00
	 */
	Suite update(Suite ab6331s00);

	/**
	 * Finds a single row in the Ab6331s00 table.
	 *
	 * @param ab6331s00
	 *            Ab6331s00
	 * @return Ab6331s00
	 */
	Suite find(Suite ab6331s00);

	/**
	 * Deletes a single row in the Ab6331s00 table.
	 *
	 * @param ab6331s00
	 *            Ab6331s00
	 */
	void remove(Suite ab6331s00, Integer idEstablecimiento);

	/**
	 * Finds a list of rows in the Ab6331s00 table.
	 *
	 * @param ab6331s00
	 *            Ab6331s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<Ab6331s00>
	 */
	List<Suite> findAll(Suite ab6331s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6331s00 table.
	 *
	 * @param filterAb6331s00
	 *            Ab6331s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Suite filterAb6331s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6331s00 table.
	 *
	 * @param filterAb6331s00
	 *            Ab6331s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6331s00>
	 */
	JQGridResponseDto<Suite> filter(Suite filterAb6331s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Ab6331s00 table.
	 *
	 * @param filterAb6331s00
	 *            Ab6331s00
	 * @param searchAb6331s00
	 *            Ab6331s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6331s00>>
	 */
	List<TableRowDto<Suite>> search(Suite filterAb6331s00, Suite searchAb6331s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6331s00 table.
	 *
	 * @param filterAb6331s00
	 *            Ab6331s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Suite filterAb6331s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

	Suite save(Suite ab6331s00);

	Long getTotalSuitesByIdEstablecimiento(Integer idEstablecimiento);

	void addMasivo(List<Suite> listaSuites);

	Long getTotalUnidadesResumen(Integer idEstablecimiento);

	Long getTotalUnidadesDetalle(Integer idEstablecimiento);

	Long getTotalPlazasResumen(Integer idEstablecimiento);

	Long getTotalPlazasDetalle(Integer idEstablecimiento);
}
