package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6300s00Dao  
 * 
 *  
 */

public interface RecursoDao {

	/**
	 * Inserts a single row in the Ab6300s00 table.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 * @return Ab6300s00
	 */
	Recurso add(Recurso ab6300s00);

	/**
	 * Updates a single row in the Ab6300s00 table.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 * @return Ab6300s00
	 */
	Recurso update(Recurso ab6300s00);

	/**
	 * Finds a single row in the Ab6300s00 table.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 * @return Ab6300s00
	 */
	Recurso find(Recurso ab6300s00);

	/**
	 * Removes a single row in the Ab6300s00 table.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 */
	void remove(Recurso ab6300s00);

	/**
	 * Finds a List of rows in the Ab6300s00 table.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<Recurso> findAll(Recurso ab6300s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6300s00 table.
	 *
	 * @param filterAb6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Recurso filterAb6300s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6300s00 table using like.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Recurso ab6300s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6300s00 table.
	 *
	 * @param ab6300s00
	 *            Ab6300s00
	 * @return Long
	 */
	Long findAllCount(Recurso ab6300s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6300s00>>
	 */
	List<TableRowDto<Recurso>> reorderSelection(Recurso filterAb6300s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6300s00
	 *            Ab6300s00
	 * @param searchAb6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6300s00>>
	 */
	List<TableRowDto<Recurso>> search(Recurso filterAb6300s00, Recurso searchAb6300s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6300s00 table.
	 *
	 * @param filterAb6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6300s00>>
	 */
	List<JerarquiaDto<Recurso>> findAllLikeJerarquia(Recurso filterAb6300s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(Recurso filterAb6300s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6300s00
	 *            Ab6300s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6300s00>>
	 */
	List<TableRowDto<Recurso>> findAllChild(Recurso filterAb6300s00, JQGridRequestDto jqGridRequestDto);

}
