package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6312s00Dao  
 * 
 *  
 */

public interface GrupoDao {

	/**
	 * 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);

	/**
	 * Removes 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
	 */
	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
	 */
	List<Grupo> findAllLike(Grupo ab6312s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

	/**
	 * Counts rows in the Ab6312s00 table using like.
	 *
	 * @param ab6312s00
	 *            Ab6312s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Grupo ab6312s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6312s00 table.
	 *
	 * @param ab6312s00
	 *            Ab6312s00
	 * @return Long
	 */
	Long findAllCount(Grupo ab6312s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6312s00>>
	 */
	List<TableRowDto<Grupo>> reorderSelection(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario 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);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6312s00 table.
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6312s00>>
	 */
	List<JerarquiaDto<Grupo>> findAllLikeJerarquia(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6312s00
	 *            Ab6312s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6312s00>>
	 */
	List<TableRowDto<Grupo>> findAllChild(Grupo filterAb6312s00, JQGridRequestDto jqGridRequestDto);

}
