package com.ejie.ab04b.service;

import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

import com.ejie.ab04b.model.Obra;

/**
 * ObraService generated by UDA, 22-feb-2017 8:54:47.
 * 
 * @author UDA
 */

public interface ObraService {

	/**
	 * Inserts a single row in the Obra table.
	 * 
	 *  ab0482s00
	 *            Obra
	 *  Obra
	 *
	 * @param ab0482s00 the ab 0482 s 00
	 * @return the obra
	 */
	Obra add(Obra ab0482s00);

	/**
	 * Updates a single row in the Obra table.
	 * 
	 *  ab0482s00
	 *            Obra
	 *  Obra
	 *
	 * @param ab0482s00 the ab 0482 s 00
	 * @return the obra
	 */
	Obra update(Obra ab0482s00);

	/**
	 * Finds a single row in the Obra table.
	 * 
	 *  ab0482s00
	 *            Obra
	 *  Obra
	 *
	 * @param ab0482s00 the ab 0482 s 00
	 * @return the obra
	 */
	Obra find(Obra ab0482s00);

	/**
	 * Deletes a single row in the Obra table.
	 * 
	 *  ab0482s00
	 *            Obra
	 *
	 * @param ab0482s00 the ab 0482 s 00
	 */
	void remove(Obra ab0482s00);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Obra table.
	 * 
	 *  filterObra
	 *            Obra
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *
	 * @param filterObra the filter obra
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 */
	void removeMultiple(Obra filterObra, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Filter method in the Obra table.
	 * 
	 *  filterObra
	 *            Obra
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  JQGridResponseDto<Obra>
	 *
	 * @param filterObra the filter obra
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<Obra> filter(Obra filterObra,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Obra table.
	 * 
	 *  filterObra
	 *            Obra
	 *  searchObra
	 *            Obra
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Obra>>
	 *
	 * @param filterObra the filter obra
	 * @param searchObra the search obra
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<Obra>> search(Obra filterObra, Obra searchObra,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Obra table.
	 * 
	 *  filterObra
	 *            Obra
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  Object
	 *
	 * @param filterObra the filter obra
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the object
	 */
	Object reorderSelection(Obra filterObra, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Obra table.
	 * 
	 *  filterObra
	 *            Obra
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  JQGridResponseDto<JerarquiaDto<Obra>>
	 *
	 * @param filterObra the filter obra
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<JerarquiaDto<Obra>> jerarquia(Obra filterObra,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Obra table.
	 * 
	 *  filterObra
	 *            Obra
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  JQGridResponseDto<JerarquiaDto<Obra>>
	 *
	 * @param filterObra the filter obra
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<JerarquiaDto<Obra>> jerarquiaChildren(Obra filterObra,
			JQGridRequestDto jqGridRequestDto);

}
