package com.ejie.ab04b.dao;

import java.util.List;

import com.ejie.ab04b.model.OS3;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * OS3Dao generated by UDA, 28-feb-2017 11:23:12.
 * 
 * @author UDA
 */

public interface OS3Dao {

	/**
	 * Inserts a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Ab0461s00
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the os3
	 */
	OS3 add(OS3 ab0461s00);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Ab0461s00
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the os3
	 */
	OS3 update(OS3 ab0461s00);

	/**
	 * Finds a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Ab0461s00
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the os3
	 */
	OS3 find(OS3 ab0461s00);

	/**
	 * Removes a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 */
	void remove(OS3 ab0461s00);

	/**
	 * Finds a List of rows in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto List
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the list
	 */
	List<OS3> findAll(OS3 ab0461s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto startsWith
	 * Boolean
	 *
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 */
	void removeMultiple(OS3 filterAb0461s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Counts rows in the Ab0461s00 table using like.
	 * 
	 * ab0461s00 Ab0461s00 startsWith Boolean Long
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @param startsWith
	 *            the starts with
	 * @return the long
	 */
	Long findAllLikeCount(OS3 ab0461s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Long
	 *
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the long
	 */
	Long findAllCount(OS3 ab0461s00);

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

	/**
	 * Searches in the Usuario table.
	 * 
	 * filterAb0461s00 Ab0461s00 searchAb0461s00 Ab0461s00 jqGridRequestDto
	 * JQGridRequestDto startsWith Boolean List<TableRowDto<Ab0461s00>>
	 *
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param searchAb0461s00
	 *            the search ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the list
	 */
	List<TableRowDto<OS3>> search(OS3 filterAb0461s00, OS3 searchAb0461s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto
	 * List<JerarquiaDto<Ab0461s00>>
	 *
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the list
	 */
	List<JerarquiaDto<OS3>> findAllLikeJerarquia(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto Long
	 *
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the long
	 */
	Long findAllLikeCountJerarquia(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto
	 * List<TableRowDto<Ab0461s00>>
	 *
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the list
	 */
	List<TableRowDto<OS3>> findAllChild(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabNotificacionOS3(OS3 os3);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabEmpresaOS3(OS3 os3);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabPrevencion(OS3 os3);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabEstadoOS3(OS3 os3);

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

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

	/**
	 * Adds the presencial.
	 * 
	 * os3 the os 3 the os3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 addPresencial(OS3 os3);

	/**
	 * Update filled.
	 * 
	 * os3 the os 3 the os3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 updateFilled(OS3 os3);

	/**
	 * Find datos registro.
	 * 
	 * os3 the os 3 the os3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 findDatosRegistro(OS3 os3);

	/**
	 * Modificar datos registro.
	 * 
	 * os3 the os 3 the os3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosRegistro(OS3 os3);

	/**
	 * Update usuarios tramitacion.
	 * 
	 * os3 the os 3 the os3
	 *
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 updateUsuariosTramitacion(OS3 os3);

	/**
	 * Update estado.
	 * 
	 * os3 the os 3
	 *
	 * @param os3
	 *            the os 3
	 */
	void updateEstado(OS3 os3);

	void updateBatchSub(OS3 os3);

	void updateFecSub(OS3 os3);
}
