package com.ejie.ab04b.dao;

import java.util.List;

import com.ejie.ab04b.model.TipoDocumento;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab0491s00Dao generated by UDA, 15-Feb-2017 11:33:53.
 * 
 * @author UDA
 */

public interface TipoDocumentoDao {

	/**
	 * Inserts a single row in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  Ab0491s00
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @return the tipo documento
	 */
	TipoDocumento add(TipoDocumento ab0491s00);

	/**
	 * Updates a single row in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  Ab0491s00
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @return the tipo documento
	 */
	TipoDocumento update(TipoDocumento ab0491s00);

	/**
	 * Finds a single row in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  Ab0491s00
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @return the tipo documento
	 */
	TipoDocumento find(TipoDocumento ab0491s00);

	/**
	 * Finds a single row in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  Ab0491s00
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @return the tipo documento
	 */
	public TipoDocumento findByTipoAsuntoDocumental(TipoDocumento ab0491s00);

	/**
	 * Removes a single row in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 */
	void remove(TipoDocumento ab0491s00);

	/**
	 * Finds a List of rows in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<TipoDocumento> findAll(TipoDocumento ab0491s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab0491s00 table using like.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TipoDocumento> findAllLike(TipoDocumento ab0491s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Ab0491s00 table using like.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(TipoDocumento ab0491s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0491s00 table.
	 * 
	 *  ab0491s00
	 *            Ab0491s00
	 *  Long
	 *
	 * @param ab0491s00 the ab 0491 s 00
	 * @return the long
	 */
	Long findAllCount(TipoDocumento ab0491s00);

	/**
	 * Reorder selection.
	 * 
	 *  filterAb0491s00
	 *            Ab0491s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0491s00>>
	 *
	 * @param filterAb0491s00 the filter ab 0491 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<TipoDocumento>> reorderSelection(
			TipoDocumento filterAb0491s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0491s00
	 *            Ab0491s00
	 *  searchAb0491s00
	 *            Ab0491s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0491s00>>
	 *
	 * @param filterAb0491s00 the filter ab 0491 s 00
	 * @param searchAb0491s00 the search ab 0491 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<TipoDocumento>> search(TipoDocumento filterAb0491s00,
			TipoDocumento searchAb0491s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

}
