package com.ejie.ab79.service.inspecciones;


import java.util.List;

import com.ejie.ab79.model.inspecciones.DesResIns;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * DesResInsService  
 *  
 */

public interface DesResInsService {

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

	/**
	 * Updates a single row in the DesResIns table.
	 *
	 * @param desResIns DesResIns
	 * @return DesResIns
	 */
	DesResIns update(DesResIns desResIns);

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the DesResIns table.
	 *
	 * @param filterDesResIns DesResIns
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 */	
	void removeMultiple(DesResIns filterDesResIns, TableRequestDto tableRequestDto,  Boolean startsWith);
   
    
	/**
	 * Filter method in the DesResIns table.
	 *
	 * @param filterDesResIns DesResIns
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<DesResIns>
	 */	
	TableResponseDto<DesResIns> filter(DesResIns filterDesResIns, TableRequestDto tableRequestDto,  Boolean startsWith);
    
    /**
	 * Searches rows in the DesResIns table.
	 *
	 * @param filterDesResIns DesResIns
	 * @param searchDesResIns DesResIns
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<DesResIns>>
	 */	
    List<TableRowDto<DesResIns>> search(DesResIns filterDesResIns, DesResIns searchDesResIns, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /**
	 * Reorder the selection made in DesResIns table.
	 *
	 * @param filterDesResIns DesResIns
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return Object
	 */	
    Object reorderSelection(DesResIns filterDesResIns, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
	 
	/**
	 * Finder method in the hierarchical the DesResIns table.
	 *
	 * @param filterDesResIns DesResIns
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<JerarquiaDto<DesResIns>>
	 */	
	TableResponseDto<JerarquiaDto<DesResIns>> jerarquia(DesResIns filterDesResIns, TableRequestDto tableRequestDto, Boolean startsWith);
	
	/**
	 * Finder method for siblings rows in the hierarchical the DesResIns table.
	 *
	 * @param filterDesResIns DesResIns
	 * @param tableRequestDto TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<DesResIns>>
	 */	
	TableResponseDto<JerarquiaDto<DesResIns>> jerarquiaChildren(DesResIns filterDesResIns, TableRequestDto tableRequestDto);
    
    /**
    * Exporta Datos al clipBoard
    *
    */
    List<DesResIns> getMultiple(DesResIns filterDesResIns, TableRequestDto tableRequestDto, Boolean startsWith);
    
}


