package com.ejie.ab63.service;

import java.util.List;

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

/**
 * Ab6320s00Service  
 * 
 *  
 */

public interface DispensaEstablecimientoService {

	/**
	 * Inserts a single row in the Ab6320s00 table.
	 *
	 * @param ab6320s00
	 *            Ab6320s00
	 * @return Ab6320s00
	 */
	DispensaEstablecimiento add(DispensaEstablecimiento ab6320s00);

	/**
	 * Updates a single row in the Ab6320s00 table.
	 *
	 * @param ab6320s00
	 *            Ab6320s00
	 * @return Ab6320s00
	 */
	DispensaEstablecimiento update(DispensaEstablecimiento ab6320s00);

	/**
	 * Finds a single row in the Ab6320s00 table.
	 *
	 * @param ab6320s00
	 *            Ab6320s00
	 * @return Ab6320s00
	 */
	DispensaEstablecimiento find(DispensaEstablecimiento ab6320s00);

	/**
	 * Deletes a single row in the Ab6320s00 table.
	 *
	 * @param ab6320s00
	 *            Ab6320s00
	 */
	void remove(DispensaEstablecimiento ab6320s00);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6320s00 table.
	 *
	 * @param filterAb6320s00
	 *            Ab6320s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(DispensaEstablecimiento filterAb6320s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6320s00 table.
	 *
	 * @param filterAb6320s00
	 *            Ab6320s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6320s00>
	 */
	JQGridResponseDto<DispensaEstablecimiento> filter(DispensaEstablecimiento filterAb6320s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Ab6320s00 table.
	 *
	 * @param filterAb6320s00
	 *            Ab6320s00
	 * @param searchAb6320s00
	 *            Ab6320s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6320s00>>
	 */
	List<TableRowDto<DispensaEstablecimiento>> search(DispensaEstablecimiento filterAb6320s00,
			DispensaEstablecimiento searchAb6320s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6320s00 table.
	 *
	 * @param filterAb6320s00
	 *            Ab6320s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(DispensaEstablecimiento filterAb6320s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

	DispensaEstablecimiento findByExpediente(DispensaEstablecimiento dispensa);

	boolean existsDispensaForExp(String folderId);

}
