package com.ejie.ab63.service;

import java.util.List;

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

/**
 * Ab6312s00Service  
 * 
 *  
 */

public interface GrupoService {

	/**
	 * Inserts a single row in the Ab6312s00 table.
	 *
	 * @param ab6312s00
	 *            Ab6312s00
	 * @return Ab6312s00
	 */
	Grupo add(Grupo ab6312s00);

	/**
	 * Updates a single row in the Ab6312s00 table.
	 *
	 * @param ab6312s00
	 *            Ab6312s00
	 * @return Ab6312s00
	 */
	Grupo update(Grupo ab6312s00);

	/**
	 * Finds a single row in the Ab6312s00 table.
	 *
	 * @param ab6312s00
	 *            Ab6312s00
	 * @return Ab6312s00
	 */
	Grupo find(Grupo ab6312s00);

	/**
	 * Deletes a single row in the Ab6312s00 table.
	 *
	 * @param ab6312s00
	 *            Ab6312s00
	 */
	void remove(Grupo ab6312s00);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6312s00 table.
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6312s00 table.
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6312s00>
	 */
	JQGridResponseDto<Grupo> filter(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Ab6312s00 table.
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param searchAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6312s00>>
	 */
	List<TableRowDto<Grupo>> search(Grupo filterAb6312s00, Grupo searchAb6312s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6312s00 table.
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

}
