package com.ejie.ab39a.service;

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

import com.ejie.ab39a.model.Elemento;

/**
 * Elemento.
 * 
 *  
 */

public interface ElementoService {

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

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

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

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

	/**
	 * Finds a list of rows in the Elemento table.
	 *
	 * @param elemento
	 *            Elemento elemento
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @return List<Elemento> lista
	 */
	List<Elemento> findAll(Elemento elemento, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Elemento table using like.
	 *
	 * @param elemento
	 *            Elemento elemento
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @param startsWith
	 *            Boolean startsWith
	 * @return List<Elemento> lista
	 */
	List<Elemento> findAllLike(Elemento elemento, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Elemento table.
	 *
	 * @param filterElemento
	 *            Elemento filterElemento
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @param startsWith
	 *            Boolean startsWith
	 */
	void removeMultiple(Elemento filterElemento, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Elemento table.
	 *
	 * @param filterElemento
	 *            Elemento filterElemento
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @param startsWith
	 *            Boolean startsWith
	 * @return JQGridResponseDto<Elemento> JQGridResponseDto
	 */
	JQGridResponseDto<Elemento> filter(Elemento filterElemento, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Elemento table.
	 *
	 * @param filterElemento
	 *            Elemento filterElemento
	 * @param jqGridRequestDto
	 *            JQGridRequestDto JQGridResponseDto
	 * @param startsWith
	 *            Boolean startsWith
	 * @return Object Object
	 */
	Object reorderSelection(Elemento filterElemento, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

}
