package com.ejie.ab79.service.inspecciones;

import com.ejie.ab79.model.inspecciones.Inspecciones;
import com.ejie.ab79.model.inspecciones.RelExpIns;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

/**
 * RelExpInsService  
 * 
 *  
 */

public interface RelExpInsService {

	/**
	 * Inserts a single row in the RelExpIns table.
	 *
	 * @param relExpIns
	 *            RelExpIns
	 * @return RelExpIns
	 */
	RelExpIns add(RelExpIns relExpIns);

	/**
	 * Finds a single row in the RelExpIns table.
	 *
	 * @param relExpIns
	 *            RelExpIns
	 * @return RelExpIns
	 */
	RelExpIns find(RelExpIns relExpIns);

	/**
	 * Deletes a single row in the RelExpIns table.
	 *
	 * @param relExpIns
	 *            RelExpIns
	 */
	void remove(RelExpIns relExpIns);

	/**
	 * Finds a list of rows in the RelExpIns table.
	 *
	 * @param relExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List<RelExpIns>
	 */
	List<RelExpIns> findAll(RelExpIns relExpIns, TableRequestDto tableRequestDto);

	/**
	 * Finds rows in the RelExpIns table using like.
	 *
	 * @param relExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<RelExpIns>
	 */
	List<RelExpIns> findAllLike(RelExpIns relExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Filter method in the RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return TableResponseDto<RelExpIns>
	 */
	TableResponseDto<RelExpIns> filter(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param searchRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<RelExpIns>>
	 */
	List<TableRowDto<RelExpIns>> search(RelExpIns filterRelExpIns, RelExpIns searchRelExpIns,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return TableResponseDto<JerarquiaDto<RelExpIns>>
	 */
	TableResponseDto<JerarquiaDto<RelExpIns>> jerarquia(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the RelExpIns table.
	 *
	 * @param filterRelExpIns
	 *            RelExpIns
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<RelExpIns>>
	 */
	TableResponseDto<JerarquiaDto<RelExpIns>> jerarquiaChildren(RelExpIns filterRelExpIns,
			TableRequestDto tableRequestDto);

	/**
	 * Exporta Datos al clipBoard
	 *
	 */
	List<RelExpIns> getMultiple(RelExpIns filterRelExpIns, TableRequestDto tableRequestDto, Boolean startsWith);

	void removeByInspeccion(Inspecciones inspeccion);

	RelExpIns updateFechaFinInspeccion(RelExpIns relExpIns);

}
