package com.ejie.ab63.service;

import java.util.List;

import com.ejie.ab63.model.TipoEstablecimiento;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6311s00Service  
 * 
 *  
 */

public interface TipoEstablecimientoService {

	/**
	 * Inserts a single row in the Ab6311s00 table.
	 *
	 * @param ab6311s00
	 *            Ab6311s00
	 * @return Ab6311s00
	 */
	TipoEstablecimiento add(TipoEstablecimiento ab6311s00);

	/**
	 * Updates a single row in the Ab6311s00 table.
	 *
	 * @param ab6311s00
	 *            Ab6311s00
	 * @return Ab6311s00
	 */
	TipoEstablecimiento update(TipoEstablecimiento ab6311s00);

	/**
	 * Finds a single row in the Ab6311s00 table.
	 *
	 * @param ab6311s00
	 *            Ab6311s00
	 * @return Ab6311s00
	 */
	TipoEstablecimiento find(TipoEstablecimiento ab6311s00);

	/**
	 * Deletes a single row in the Ab6311s00 table.
	 *
	 * @param ab6311s00
	 *            Ab6311s00
	 */
	void remove(TipoEstablecimiento ab6311s00);

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

	/**
	 * Finds rows in the Ab6311s00 table using like.
	 *
	 * @param ab6311s00
	 *            Ab6311s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<Ab6311s00>
	 */
	List<TipoEstablecimiento> findAllLike(TipoEstablecimiento ab6311s00, TableRequestDto jqGridRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6311s00 table.
	 *
	 * @param filterAb6311s00
	 *            Ab6311s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(TipoEstablecimiento filterAb6311s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6311s00 table.
	 *
	 * @param filterAb6311s00
	 *            Ab6311s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6311s00>
	 */
	TableResponseDto<TipoEstablecimiento> filter(TipoEstablecimiento filterAb6311s00, TableRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the Ab6311s00 table.
	 *
	 * @param filterAb6311s00
	 *            Ab6311s00
	 * @param searchAb6311s00
	 *            Ab6311s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6311s00>>
	 */
	List<TableRowDto<TipoEstablecimiento>> search(TipoEstablecimiento filterAb6311s00,
			TipoEstablecimiento searchAb6311s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6311s00 table.
	 *
	 * @param filterAb6311s00
	 *            Ab6311s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(TipoEstablecimiento filterAb6311s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

}
