package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6313s00Dao  
 * 
 *  
 */

public interface CategoriaDao {

	/**
	 * Inserts a single row in the Ab6313s00 table.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @return Ab6313s00
	 */
	Categoria add(Categoria ab6313s00);

	/**
	 * Updates a single row in the Ab6313s00 table.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @return Ab6313s00
	 */
	Categoria update(Categoria ab6313s00);

	/**
	 * Finds a single row in the Ab6313s00 table.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @return Ab6313s00
	 */
	Categoria find(Categoria ab6313s00);

	/**
	 * Removes a single row in the Ab6313s00 table.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 */
	void remove(Categoria ab6313s00);

	/**
	 * Finds a List of rows in the Ab6313s00 table.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<Categoria> findAll(Categoria ab6313s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab6313s00 table using like.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @param tableRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<Categoria> findAllLike(Categoria ab6313s00, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6313s00 table.
	 *
	 * @param filterAb6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Categoria filterAb6313s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6313s00 table using like.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Categoria ab6313s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6313s00 table.
	 *
	 * @param ab6313s00
	 *            Ab6313s00
	 * @return Long
	 */
	Long findAllCount(Categoria ab6313s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6313s00>>
	 */
	List<TableRowDto<Categoria>> reorderSelection(Categoria filterAb6313s00, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6313s00
	 *            Ab6313s00
	 * @param searchAb6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6313s00>>
	 */
	List<TableRowDto<Categoria>> search(Categoria filterAb6313s00, Categoria searchAb6313s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6313s00 table.
	 *
	 * @param filterAb6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6313s00>>
	 */
	List<JerarquiaDto<Categoria>> findAllLikeJerarquia(Categoria filterAb6313s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(Categoria filterAb6313s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6313s00
	 *            Ab6313s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6313s00>>
	 */
	List<TableRowDto<Categoria>> findAllChild(Categoria filterAb6313s00, JQGridRequestDto jqGridRequestDto);

}
