package com.ejie.ab04b.dao;

import java.util.List;

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

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

public interface TramiteOS2Dao {

	/**
	 * Inserts a single row in the Ab0492s00 table.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *  Ab0492s00
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 * @return the tramite OS 2
	 */
	TramiteOS2 add(TramiteOS2 ab0492s00);

	/**
	 * Updates a single row in the Ab0492s00 table.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *  Ab0492s00
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 * @return the tramite OS 2
	 */
	TramiteOS2 update(TramiteOS2 ab0492s00);

	/**
	 * Finds a single row in the Ab0492s00 table.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *  Ab0492s00
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 * @return the tramite OS 2
	 */
	TramiteOS2 find(TramiteOS2 ab0492s00);

	/**
	 * Removes a single row in the Ab0492s00 table.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 */
	void remove(TramiteOS2 ab0492s00);

	/**
	 * Finds a List of rows in the Ab0492s00 table.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<TramiteOS2> findAll(TramiteOS2 ab0492s00,
			JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Ab0492s00 table using like.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(TramiteOS2 ab0492s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0492s00 table.
	 * 
	 *  ab0492s00
	 *            Ab0492s00
	 *  Long
	 *
	 * @param ab0492s00 the ab 0492 s 00
	 * @return the long
	 */
	Long findAllCount(TramiteOS2 ab0492s00);

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

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0492s00
	 *            Ab0492s00
	 *  searchAb0492s00
	 *            Ab0492s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0492s00>>
	 *
	 * @param filterAb0492s00 the filter ab 0492 s 00
	 * @param searchAb0492s00 the search ab 0492 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<TramiteOS2>> search(TramiteOS2 filterAb0492s00,
			TramiteOS2 searchAb0492s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

}
