package com.ejie.ab04b.dao;

import java.util.List;

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

/**
 * Ab0465s00Dao generated by UDA, 15-Feb-2017 09:14:46.
 * 
 * @author UDA
 */

public interface DocumentoAperturasDao {

	/**
	 * Inserts a single row in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *  Ab0465s00
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @return the documento aperturas
	 */
	DocumentoAperturas add(DocumentoAperturas ab0465s00);

	/**
	 * Updates a single row in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *  Ab0465s00
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @return the documento aperturas
	 */
	DocumentoAperturas update(DocumentoAperturas ab0465s00);

	/**
	 * Updates a single row in the Solicitudes table.
	 * 
	 *  doc
	 *            SolicDocumentos
	 *  SolicDocumentos
	 *
	 * @param doc the doc
	 * @return the documento aperturas
	 */
	DocumentoAperturas updateOidDokusi(DocumentoAperturas doc);

	/**
	 * Updates a single row in the Expedientes table.
	 * 
	 *  ab0465s00
	 *            DocumentoAperturas
	 *  DocumentoAperturas
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @return the documento aperturas
	 */
	public DocumentoAperturas updateFilled(DocumentoAperturas ab0465s00);

	/**
	 * Finds a single row in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *  Ab0465s00
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @return the documento aperturas
	 */
	DocumentoAperturas find(DocumentoAperturas ab0465s00);

	/**
	 * Finds a single row in the Ab0465s00 table.
	 * 
	 *  oid
	 *            String
	 *  DocumentoAperturas
	 *
	 * @param oid the oid
	 * @return the documento aperturas
	 */
	public DocumentoAperturas findByOid(String oid);
	
	/**
	 * Finds a single row in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            DocumentoAperturas
	 *  DocumentoAperturas
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @return the documento aperturas
	 */
	public DocumentoAperturas findByTramite(DocumentoAperturas ab0465s00);
	
	/**
	 * 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<DocumentoAperturas> buscarPorIdTramiteYMetadatoNombre(
			DocumentoAperturas solicdocumentos,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Removes a single row in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 */
	void remove(DocumentoAperturas ab0465s00);

	/**
	 * Finds a List of rows in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<DocumentoAperturas> findAll(DocumentoAperturas ab0465s00,
			JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Ab0465s00 table using like.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(DocumentoAperturas ab0465s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0465s00 table.
	 * 
	 *  ab0465s00
	 *            Ab0465s00
	 *  Long
	 *
	 * @param ab0465s00 the ab 0465 s 00
	 * @return the long
	 */
	Long findAllCount(DocumentoAperturas ab0465s00);

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

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0465s00
	 *            Ab0465s00
	 *  searchAb0465s00
	 *            Ab0465s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0465s00>>
	 *
	 * @param filterAb0465s00 the filter ab 0465 s 00
	 * @param searchAb0465s00 the search ab 0465 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<DocumentoAperturas>> search(
			DocumentoAperturas filterAb0465s00,
			DocumentoAperturas searchAb0465s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

}
