package com.ejie.ab39a.dao;

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

import com.ejie.ab39a.model.ElementosPg;

/**
 * ElementosPgDao.
 * 
 *  
 */

public interface ElementosPgDao {

	/**
	 * 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);

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

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

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

	/**
	 * Finds a List of rows in the ElementosPg table.
	 *
	 * @param elementosPg
	 *            ElementosPg elementosPg
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @return List lista
	 */
	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 lista
	 */
	List<ElementosPg> findAllLike(ElementosPg elementosPg, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the ElementosPg table.
	 *
	 * @param filterElementosPg
	 *            ElementosPg filterElementosPg
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @param startsWith
	 *            Boolean startsWith
	 */
	void removeMultiple(ElementosPg filterElementosPg, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the ElementosPg table using like.
	 *
	 * @param elementosPg
	 *            ElementosPg elementosPg
	 * @param startsWith
	 *            Boolean startsWith
	 * @return Long long
	 */
	Long findAllLikeCount(ElementosPg elementosPg, Boolean startsWith);

	/**
	 * Counts rows in the ElementosPg table.
	 *
	 * @param elementosPg
	 *            ElementosPg elementosPg
	 * @return Long long
	 */
	Long findAllCount(ElementosPg elementosPg);

	/**
	 * Reorder selection.
	 *
	 * @param filterElementosPg
	 *            ElementosPg filterElementosPg
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @param startsWith
	 *            Boolean startsWith
	 * @return List<TableRowDto<ElementosPg>> lista
	 */
	List<TableRowDto<ElementosPg>> reorderSelection(ElementosPg filterElementosPg, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

}
