package com.ejie.ab63.service;

import java.util.List;

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

/**
 * Ab6315s00Service  
 * 
 *  
 */

public interface EspecialidadService {

	/**
	 * Inserts a single row in the Ab6315s00 table.
	 *
	 * @param ab6315s00
	 *            Ab6315s00
	 * @return Ab6315s00
	 */
	Especialidad add(Especialidad ab6315s00);

	/**
	 * Updates a single row in the Ab6315s00 table.
	 *
	 * @param ab6315s00
	 *            Ab6315s00
	 * @return Ab6315s00
	 */
	Especialidad update(Especialidad ab6315s00);

	/**
	 * Finds a single row in the Ab6315s00 table.
	 *
	 * @param ab6315s00
	 *            Ab6315s00
	 * @return Ab6315s00
	 */
	Especialidad find(Especialidad ab6315s00);

	/**
	 * Deletes a single row in the Ab6315s00 table.
	 *
	 * @param ab6315s00
	 *            Ab6315s00
	 */
	void remove(Especialidad ab6315s00);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6315s00 table.
	 *
	 * @param filterAb6315s00
	 *            Ab6315s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Especialidad filterAb6315s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6315s00 table.
	 *
	 * @param filterAb6315s00
	 *            Ab6315s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6315s00>
	 */
	JQGridResponseDto<Especialidad> filter(Especialidad filterAb6315s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the Ab6315s00 table.
	 *
	 * @param filterAb6315s00
	 *            Ab6315s00
	 * @param searchAb6315s00
	 *            Ab6315s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6315s00>>
	 */
	List<TableRowDto<Especialidad>> search(Especialidad filterAb6315s00, Especialidad searchAb6315s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6315s00 table.
	 *
	 * @param filterAb6315s00
	 *            Ab6315s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Especialidad filterAb6315s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

}
