package com.ejie.ab79.service;

import java.util.List;

import com.ejie.ab79.model.RelOriDir;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;

/**
 * RelOriDirService  
 * 
 *  
 */

public interface RelOriDirService {

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

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

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

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

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

	RelOriDir findByOrigenDireccion(RelOriDir relOriDir);

}
