package com.ejie.ab04b.dao;

import java.util.List;

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

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

public interface DocumentoOS3Dao {

	/**
	 * Inserts a single row in the Ab0497s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  Ab0497s00
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @return the documento OS 3
	 */
	DocumentoOS3 add(DocumentoOS3 ab0497s00);

	/**
	 * Updates a single row in the Ab0497s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  Ab0497s00
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @return the documento OS 3
	 */
	DocumentoOS3 update(DocumentoOS3 ab0497s00);

	/**
	 * Updates a single row in the Ab0494s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  Ab0497s00
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @return the documento OS 3
	 */
	DocumentoOS3 updateFilled(DocumentoOS3 ab0497s00);

	/**
	 * Finds a single row in the Ab0497s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  Ab0497s00
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @return the documento OS 3
	 */
	DocumentoOS3 find(DocumentoOS3 ab0497s00);

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

	/**
	 * Removes a single row in the Ab0497s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 */
	void remove(DocumentoOS3 ab0497s00);

	/**
	 * Finds a List of rows in the Ab0497s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<DocumentoOS3> findAll(DocumentoOS3 ab0497s00,
			JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Ab0497s00 table using like.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(DocumentoOS3 ab0497s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0497s00 table.
	 * 
	 *  ab0497s00
	 *            Ab0497s00
	 *  Long
	 *
	 * @param ab0497s00 the ab 0497 s 00
	 * @return the long
	 */
	Long findAllCount(DocumentoOS3 ab0497s00);

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

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0497s00
	 *            Ab0497s00
	 *  searchAb0497s00
	 *            Ab0497s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0497s00>>
	 *
	 * @param filterAb0497s00 the filter ab 0497 s 00
	 * @param searchAb0497s00 the search ab 0497 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<DocumentoOS3>> search(DocumentoOS3 filterAb0497s00,
			DocumentoOS3 searchAb0497s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

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

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

}
