package com.ejie.ab04b.dao;

import java.util.List;

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

/**
 * OS2Dao generated by UDA, 28-feb-2017 16:03:07.
 * 
 * @author UDA
 */

public interface OS2Dao {

	/**
	 * Inserts a single row in the Ab0460s00 table.
	 * 
	 * ab0460s00 Ab0460s00 Ab0460s00
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 * @return the os2
	 */
	OS2 add(OS2 ab0460s00);

	/**
	 * Updates a single row in the Ab0460s00 table.
	 * 
	 * ab0460s00 Ab0460s00 Ab0460s00
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 * @return the os2
	 */
	OS2 update(OS2 ab0460s00);

	/**
	 * Finds a single row in the Ab0460s00 table.
	 * 
	 * ab0460s00 Ab0460s00 Ab0460s00
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 * @return the os2
	 */
	OS2 find(OS2 ab0460s00);

	/**
	 * Removes a single row in the Ab0460s00 table.
	 * 
	 * ab0460s00 Ab0460s00
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 */
	void remove(OS2 ab0460s00);

	/**
	 * Finds a List of rows in the Ab0460s00 table.
	 * 
	 * ab0460s00 Ab0460s00 jqGridRequestDto JQGridRequestDto List
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the list
	 */
	List<OS2> findAll(OS2 ab0460s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the Ab0460s00 table using like.
	 * 
	 * ab0460s00 Ab0460s00 startsWith Boolean Long
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 * @param startsWith
	 *            the starts with
	 * @return the long
	 */
	Long findAllLikeCount(OS2 ab0460s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0460s00 table.
	 * 
	 * ab0460s00 Ab0460s00 Long
	 *
	 * @param ab0460s00
	 *            the ab 0460 s 00
	 * @return the long
	 */
	Long findAllCount(OS2 ab0460s00);

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

	/**
	 * Searches in the Usuario table.
	 * 
	 * filterAb0460s00 Ab0460s00 searchAb0460s00 Ab0460s00 jqGridRequestDto
	 * JQGridRequestDto startsWith Boolean List<TableRowDto<Ab0460s00>>
	 *
	 * @param filterAb0460s00
	 *            the filter ab 0460 s 00
	 * @param searchAb0460s00
	 *            the search ab 0460 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the list
	 */
	List<TableRowDto<OS2>> search(OS2 filterAb0460s00, OS2 searchAb0460s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Updates a single row in the Ab0460s00 table.
	 * 
	 * os2 OS2 OS2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 modificarDatosTabNotificacionOS2(OS2 os2);

	/**
	 * Updates a single row in the Ab0460s00 table.
	 * 
	 * os2 OS2 OS2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 modificarDatosTabEmpresaOS2(OS2 os2);

	/**
	 * Updates a single row in the Ab0460s00 table.
	 * 
	 * os2 OS2 OS2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 modificarDatosTabModalidad(OS2 os2);

	/**
	 * Updates a single row in the Ab0460s00 table.
	 * 
	 * os2 OS2 OS2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 modificarDatosTabAuditoria(OS2 os2);

	/**
	 * Updates a single row in the Ab0460s00 table.
	 * 
	 * os2 OS2 OS2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 modificarDatosTabEstadoOS2(OS2 os2);

	/**
	 * Find by folder id.
	 * 
	 * folderId the folder id the os2
	 *
	 * @param folderId
	 *            the folder id
	 * @return the os2
	 */
	OS2 findByFolderId(String folderId);

	/**
	 * Find by folder id 2.
	 * 
	 * folderId the folder id the os2
	 *
	 * @param folderId
	 *            the folder id
	 * @return the os2
	 */
	OS2 findByFolderId2(String folderId);

	/**
	 * Adds the presencial.
	 * 
	 * os2 the os 2 the os2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 addPresencial(OS2 os2);

	/**
	 * Update filled.
	 * 
	 * os2 the os 2 the os2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 updateFilled(OS2 os2);

	/**
	 * Find datos registro.
	 * 
	 * os2 the os 2 the os2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 findDatosRegistro(OS2 os2);

	/**
	 * Modificar datos registro.
	 * 
	 * os2 the os 2 the os2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 modificarDatosRegistro(OS2 os2);

	/**
	 * Update usuarios tramitacion.
	 * 
	 * os2 the os 2 the os2
	 *
	 * @param os2
	 *            the os 2
	 * @return the os2
	 */
	OS2 updateUsuariosTramitacion(OS2 os2);

	/**
	 * Update estado.
	 * 
	 * os2 the os 2
	 *
	 * @param os2
	 *            the os 2
	 */
	void updateEstado(OS2 os2);

	void updateBatchSub(OS2 os2);

	void updateFecSub(OS2 os2);
}
