package com.ejie.ab04b.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ejie.ab04b.model.TareaOS2;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * TareaOS2Service generated by UDA, 02-Feb-2017 13:49:16.
 * 
 * @author UDA
 */

public interface TareaOS2Service {

	/**
	 * Inserts a single row in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  TareaOS2
	 *
	 * @param tareaOs2 the tarea os 2
	 * @return the tarea OS 2
	 */
	TareaOS2 add(TareaOS2 tareaOs2);

	/**
	 * Updates a single row in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  TareaOS2
	 *
	 * @param tareaOs2 the tarea os 2
	 * @return the tarea OS 2
	 */
	TareaOS2 update(TareaOS2 tareaOs2);

	/**
	 * Updates a single row in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  TareaOS2
	 *
	 * @param tareaOs2 the tarea os 2
	 * @return the tarea OS 2
	 */
	@Transactional(rollbackFor = Throwable.class)
	public TareaOS2 updateFilled(TareaOS2 tareaOs2);

	/**
	 * Finds a single row in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  TareaOS2
	 *
	 * @param tareaOs2 the tarea os 2
	 * @return the tarea OS 2
	 */
	TareaOS2 find(TareaOS2 tareaOs2);

	/**
	 * Finds a single row in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  TareaOS2
	 *
	 * @param tareaOs2 the tarea os 2
	 * @return the tarea OS 2
	 */
	public TareaOS2 findTareaTramite(TareaOS2 tareaOs2);

	/**
	 * Finds a single row in the TareaOS2 table.
	 * 
	 *  mailboxTaskId
	 *            String
	 *  TareaOS2
	 *
	 * @param mailboxTaskId the mailbox task id
	 * @return the tarea OS 2
	 */
	public TareaOS2 findByMailboxTaskId(String mailboxTaskId);

	/**
	 * Deletes a single row in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *
	 * @param tareaOs2 the tarea os 2
	 */
	void remove(TareaOS2 tareaOs2);

	/**
	 * Finds a list of rows in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List<TareaOS2>
	 *
	 * @param tareaOs2 the tarea os 2
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<TareaOS2> findAll(TareaOS2 tareaOs2,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds a list of rows in the TareaOS2 table.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List<TareaOS2>
	 *
	 * @param tareaOs2 the tarea os 2
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	public List<TareaOS2> findAllTareatramite(TareaOS2 tareaOs2,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the TareaOS2 table using like.
	 * 
	 *  tareaOs2
	 *            TareaOS2
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TareaOS2>
	 *
	 * @param tareaOs2 the tarea os 2
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TareaOS2> findAllLike(TareaOS2 tareaOs2,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter method in the TareaOS2 table.
	 * 
	 *  filterTareaOS2
	 *            TareaOS2
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  JQGridResponseDto<TareaOS2>
	 *
	 * @param filterTareaOS2 the filter tarea OS 2
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<TareaOS2> filter(TareaOS2 filterTareaOS2,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the TareaOS2 table.
	 * 
	 *  filterTareaOS2
	 *            TareaOS2
	 *  searchTareaOS2
	 *            TareaOS2
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<TareaOS2>>
	 *
	 * @param filterTareaOS2 the filter tarea OS 2
	 * @param searchTareaOS2 the search tarea OS 2
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<TareaOS2>> search(TareaOS2 filterTareaOS2,
			TareaOS2 searchTareaOS2, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Reorder the selection made in TareaOS2 table.
	 * 
	 *  filterTareaOS2
	 *            TareaOS2
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  Object
	 *
	 * @param filterTareaOS2 the filter tarea OS 2
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the object
	 */
	Object reorderSelection(TareaOS2 filterTareaOS2,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

}
