package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6314s00Dao  
 * 
 *  
 */

public interface ModalidadDao {

	/**
	 * Inserts a single row in the Ab6314s00 table.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 * @return Ab6314s00
	 */
	Modalidad add(Modalidad ab6314s00);

	/**
	 * Updates a single row in the Ab6314s00 table.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 * @return Ab6314s00
	 */
	Modalidad update(Modalidad ab6314s00);

	/**
	 * Finds a single row in the Ab6314s00 table.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 * @return Ab6314s00
	 */
	Modalidad find(Modalidad ab6314s00);

	/**
	 * Removes a single row in the Ab6314s00 table.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 */
	void remove(Modalidad ab6314s00);

	/**
	 * Finds a List of rows in the Ab6314s00 table.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<Modalidad> findAll(Modalidad ab6314s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6314s00 table.
	 *
	 * @param filterAb6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Modalidad filterAb6314s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6314s00 table using like.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Modalidad ab6314s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6314s00 table.
	 *
	 * @param ab6314s00
	 *            Ab6314s00
	 * @return Long
	 */
	Long findAllCount(Modalidad ab6314s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6314s00>>
	 */
	List<TableRowDto<Modalidad>> reorderSelection(Modalidad filterAb6314s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6314s00
	 *            Ab6314s00
	 * @param searchAb6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6314s00>>
	 */
	List<TableRowDto<Modalidad>> search(Modalidad filterAb6314s00, Modalidad searchAb6314s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6314s00 table.
	 *
	 * @param filterAb6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6314s00>>
	 */
	List<JerarquiaDto<Modalidad>> findAllLikeJerarquia(Modalidad filterAb6314s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(Modalidad filterAb6314s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6314s00
	 *            Ab6314s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6314s00>>
	 */
	List<TableRowDto<Modalidad>> findAllChild(Modalidad filterAb6314s00, JQGridRequestDto jqGridRequestDto);

}
