package com.ejie.ab04b.dao;

import java.util.List;

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

/**
 * Ab0494s00Dao generated by UDA, 05-Apr-2017 09:34:34.
 * 
 * @author UDA
 */

public interface DocumentoOS2Dao {

	/**
	 * Inserts a single row in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  Ab0494s00
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @return the documento OS 2
	 */
	DocumentoOS2 add(DocumentoOS2 ab0494s00);

	/**
	 * Updates a single row in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  Ab0494s00
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @return the documento OS 2
	 */
	DocumentoOS2 update(DocumentoOS2 ab0494s00);

	/**
	 * Updates a single row in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  Ab0494s00
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @return the documento OS 2
	 */
	DocumentoOS2 updateFilled(DocumentoOS2 ab0494s00);

	/**
	 * Finds a single row in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  Ab0494s00
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @return the documento OS 2
	 */
	DocumentoOS2 find(DocumentoOS2 ab0494s00);

	/**
	 * Finds a single row in the Ab0465s00 table.
	 * 
	 *  oid
	 *            String
	 *  DocumentoOS2
	 *
	 * @param oid the oid
	 * @return the documento OS 2
	 */
	public DocumentoOS2 findByOid(String oid);

	/**
	 * Removes a single row in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 */
	void remove(DocumentoOS2 ab0494s00);

	/**
	 * Finds a List of rows in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<DocumentoOS2> findAll(DocumentoOS2 ab0494s00,
			JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Ab0494s00 table using like.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(DocumentoOS2 ab0494s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0494s00 table.
	 * 
	 *  ab0494s00
	 *            Ab0494s00
	 *  Long
	 *
	 * @param ab0494s00 the ab 0494 s 00
	 * @return the long
	 */
	Long findAllCount(DocumentoOS2 ab0494s00);

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

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0494s00
	 *            Ab0494s00
	 *  searchAb0494s00
	 *            Ab0494s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0494s00>>
	 *
	 * @param filterAb0494s00 the filter ab 0494 s 00
	 * @param searchAb0494s00 the search ab 0494 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<DocumentoOS2>> search(DocumentoOS2 filterAb0494s00,
			DocumentoOS2 searchAb0494s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Finds a list of rows in the SolicDocumentos table.
	 * 
	 *  solicdocumentos
	 *            SolicDocumentos
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List<SolicDocumentos>
	 *
	 * @param solicdocumentos the solicdocumentos
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<DocumentoOS2> buscarPorIdTramiteYMetadatoNombre(
			DocumentoOS2 solicdocumentos, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find by tramite.
	 * 
	 *  doc the doc
	 *  the documento OS 2
	 *
	 * @param doc the doc
	 * @return the documento OS 2
	 */
	DocumentoOS2 findByTramite(DocumentoOS2 doc);

}
