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.ElementosPg;

/**
 * ElementosPg.
 * 
 *  
 */

public interface ElementosPgService {

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

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

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

	/**
	 * Deletes a single row in the ElementosPg table.
	 *
	 * @param elementosPg
	 *            ElementosPg elementosPg
	 */
	void removeHijos(ElementosPg elementosPg);

	/**
	 * Deletes a single row in the ElementosPg table.
	 *
	 * @param elementosPg
	 *            ElementosPg elementosPg
	 */
	void removeConIdElemento(ElementosPg elementosPg);

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

}
