package com.ejie.ab04b.dao;

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

import com.ejie.ab04b.model.VdatosReqApe;

/**
 * VdatosReqApeDao generated by UDA, 20-jun-2017 10:36:48.
 * @author UDA
 */

public interface VdatosReqApeDao {
    
    /**
     * Inserts a single row in the VdatosReqApe table.
     * 
     *  vdatosreqape VdatosReqApe
     *  VdatosReqApe
     *
     * @param vdatosreqape the vdatosreqape
     * @return the vdatos req ape
     */
    VdatosReqApe add(VdatosReqApe vdatosreqape);

    /**
     * Updates a single row in the VdatosReqApe table.
     * 
     *  vdatosreqape VdatosReqApe
     *  VdatosReqApe
     *
     * @param vdatosreqape the vdatosreqape
     * @return the vdatos req ape
     */
    VdatosReqApe update(VdatosReqApe vdatosreqape);

    /**
     * Finds a single row in the VdatosReqApe table.
     * 
     *  vdatosreqape VdatosReqApe
     *  VdatosReqApe
     *
     * @param vdatosreqape the vdatosreqape
     * @return the vdatos req ape
     */
    VdatosReqApe find(VdatosReqApe vdatosreqape);

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

    /**
     * Finds a List of rows in the VdatosReqApe table.
     * 
     *  vdatosreqape VdatosReqApe
     *  jqGridRequestDto JQGridRequestDto
     *  List
     *
     * @param vdatosreqape the vdatosreqape
     * @param jqGridRequestDto the jq grid request dto
     * @return the list
     */
    List<VdatosReqApe> findAll(VdatosReqApe vdatosreqape, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the VdatosReqApe table using like.
	 * 
	 *  vdatosreqape VdatosReqApe
	 *  jqGridRequestDto JQGridRequestDto
	 *  startsWith Boolean
	 *  List
	 *
	 * @param vdatosreqape the vdatosreqape
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<VdatosReqApe> findAllLike(VdatosReqApe vdatosreqape, JQGridRequestDto jqGridRequestDto, Boolean startsWith);
	
	
	/*
	 * OPERACIONES RUP_TABLE
	 */
	 
	/**
	 * Filter in the VdatosReqApe table.
	 * 
	 *  filterVdatosReqApe VdatosReqApe
	 *  jqGridRequestDto JQGridRequestDto
	 *  startsWith Boolean
	 *
	 * @param filterVdatosReqApe the filter vdatos req ape
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 */	
	 void removeMultiple(VdatosReqApe filterVdatosReqApe, JQGridRequestDto jqGridRequestDto, Boolean startsWith);
	
	
    /**
     * Counts rows in the VdatosReqApe table using like.
     * 
     *  vdatosreqape VdatosReqApe
     *  startsWith Boolean
     *  Long
     *
     * @param vdatosreqape the vdatosreqape
     * @param startsWith the starts with
     * @return the long
     */
    Long findAllLikeCount(VdatosReqApe vdatosreqape, Boolean startsWith);
    
    /**
     * Counts rows in the VdatosReqApe table.
     * 
     *  vdatosreqape VdatosReqApe
     *  Long
     *
     * @param vdatosreqape the vdatosreqape
     * @return the long
     */
    Long findAllCount(VdatosReqApe vdatosreqape);
    
    /**
     * Reorder selection.
     * 
     *  filterVdatosReqApe VdatosReqApe
     *  jqGridRequestDto JQGridRequestDto
     *  startsWith Boolean
     *  List<TableRowDto<VdatosReqApe>>
     *
     * @param filterVdatosReqApe the filter vdatos req ape
     * @param jqGridRequestDto the jq grid request dto
     * @param startsWith the starts with
     * @return the list
     */	
    List<TableRowDto<VdatosReqApe>> reorderSelection(VdatosReqApe filterVdatosReqApe, JQGridRequestDto jqGridRequestDto, Boolean startsWith);
    
     /**
      * Searches in the Usuario table.
      * 
      *  filterVdatosReqApe VdatosReqApe
      *  searchVdatosReqApe VdatosReqApe
      *  jqGridRequestDto JQGridRequestDto
      *  startsWith Boolean
      *  List<TableRowDto<VdatosReqApe>>
      *
      * @param filterVdatosReqApe the filter vdatos req ape
      * @param searchVdatosReqApe the search vdatos req ape
      * @param jqGridRequestDto the jq grid request dto
      * @param startsWith the starts with
      * @return the list
      */	
    List<TableRowDto<VdatosReqApe>> search(VdatosReqApe filterVdatosReqApe, VdatosReqApe searchVdatosReqApe, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
    
    /**
     * Filter in the hierarchical VdatosReqApe table.
     * 
     *  filterVdatosReqApe VdatosReqApe
     *  jqGridRequestDto JQGridRequestDto
     *  List<JerarquiaDto<VdatosReqApe>>
     *
     * @param filterVdatosReqApe the filter vdatos req ape
     * @param jqGridRequestDto the jq grid request dto
     * @return the list
     */	
	List<JerarquiaDto<VdatosReqApe>> findAllLikeJerarquia(VdatosReqApe filterVdatosReqApe, JQGridRequestDto jqGridRequestDto);
	
	/**
	 * Count rows in hierarchy.
	 * 
	 *  filterVdatosReqApe VdatosReqApe
	 *  jqGridRequestDto JQGridRequestDto
	 *  Long
	 *
	 * @param filterVdatosReqApe the filter vdatos req ape
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the long
	 */	
	Long findAllLikeCountJerarquia(VdatosReqApe filterVdatosReqApe, JQGridRequestDto jqGridRequestDto);
	
	/**
	 * Find dependent hierarchical rows.
	 * 
	 *  filterVdatosReqApe VdatosReqApe
	 *  jqGridRequestDto JQGridRequestDto
	 *  List<TableRowDto<VdatosReqApe>>
	 *
	 * @param filterVdatosReqApe the filter vdatos req ape
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */	
	List<TableRowDto<VdatosReqApe>> findAllChild(VdatosReqApe filterVdatosReqApe, JQGridRequestDto jqGridRequestDto);
	
	
}

