package com.ejie.ab04b.service;


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

import com.ejie.ab04b.model.Folder;

/**
 * Ab0477s00Service generated by UDA, 07-jun-2017 11:54:50.
 * @author UDA
 */

public interface FolderService {

	/**
	 * Inserts a single row in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  Ab0477s00
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @return the folder
	 */
    Folder add(Folder ab0477s00);

	/**
	 * Updates a single row in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  Ab0477s00
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @return the folder
	 */
	Folder update(Folder ab0477s00);
	
	/**
	 * Updates a single row in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  Ab0477s00
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @return the folder
	 */
	Folder updateFolderId(Folder ab0477s00);

	/**
	 * Finds a single row in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  Ab0477s00
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @return the folder
	 */
	Folder find(Folder ab0477s00);
	
	/**
	 * Finds a single row in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  Ab0477s00
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @return the folder
	 */
	Folder findByPk(Folder ab0477s00);

	/**
	 * Deletes a single row in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 */
	void remove(Folder ab0477s00);

	/**
	 * Finds a list of rows in the Ab0477s00 table.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  jqGridRequestDto JQGridRequestDto
	 *  List<Ab0477s00>
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<Folder> findAll(Folder ab0477s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab0477s00 table using like.
	 * 
	 *  ab0477s00 Ab0477s00
	 *  jqGridRequestDto JQGridRequestDto
	 *  startsWith Boolean	 
	 *  List<Ab0477s00>
	 *
	 * @param ab0477s00 the ab 0477 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<Folder> findAllLike(Folder ab0477s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab0477s00 table.
	 * 
	 *  filterAb0477s00 Ab0477s00
	 *  jqGridRequestDto JQGridRequestDto
	 *  startsWith Boolean
	 *
	 * @param filterAb0477s00 the filter ab 0477 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 */	
	void removeMultiple(Folder filterAb0477s00, JQGridRequestDto jqGridRequestDto,  Boolean startsWith);
   
    
	/**
	 * Filter method in the Ab0477s00 table.
	 * 
	 *  filterAb0477s00 Ab0477s00
	 *  jqGridRequestDto JQGridRequestDto
	 *  startsWith Boolean
	 *  JQGridResponseDto<Ab0477s00>
	 *
	 * @param filterAb0477s00 the filter ab 0477 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the JQ grid response dto
	 */	
	JQGridResponseDto<Folder> filter(Folder filterAb0477s00, JQGridRequestDto jqGridRequestDto,  Boolean startsWith);
    
    /**
     * Searches rows in the Ab0477s00 table.
     * 
     *  filterAb0477s00 Ab0477s00
     *  searchAb0477s00 Ab0477s00
     *  jqGridRequestDto JQGridRequestDto
     *  startsWith Boolean
     *  List<TableRowDto<Ab0477s00>>
     *
     * @param filterAb0477s00 the filter ab 0477 s 00
     * @param searchAb0477s00 the search ab 0477 s 00
     * @param jqGridRequestDto the jq grid request dto
     * @param startsWith the starts with
     * @return the list
     */	
    List<TableRowDto<Folder>> search(Folder filterAb0477s00, Folder searchAb0477s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);
    
    /**
     * Reorder the selection made in Ab0477s00 table.
     * 
     *  filterAb0477s00 Ab0477s00
     *  jqGridRequestDto JQGridRequestDto
     *  startsWith Boolean
     *  Object
     *
     * @param filterAb0477s00 the filter ab 0477 s 00
     * @param jqGridRequestDto the jq grid request dto
     * @param startsWith the starts with
     * @return the object
     */	
    Object reorderSelection(Folder filterAb0477s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);
    
    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
	 
	/**
     * Finder method in the hierarchical the Ab0477s00 table.
     * 
     *  filterAb0477s00 Ab0477s00
     *  jqGridRequestDto JQGridRequestDto
     *  startsWith Boolean
     *  JQGridResponseDto<JerarquiaDto<Ab0477s00>>
     *
     * @param filterAb0477s00 the filter ab 0477 s 00
     * @param jqGridRequestDto the jq grid request dto
     * @param startsWith the starts with
     * @return the JQ grid response dto
     */	
	JQGridResponseDto<JerarquiaDto<Folder>> jerarquia(Folder filterAb0477s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);
	
	/**
	 * Finder method for siblings rows in the hierarchical the Ab0477s00 table.
	 * 
	 *  filterAb0477s00 Ab0477s00
	 *  jqGridRequestDto JQGridRequestDto
	 *  JQGridResponseDto<JerarquiaDto<Ab0477s00>>
	 *
	 * @param filterAb0477s00 the filter ab 0477 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the JQ grid response dto
	 */	
	JQGridResponseDto<JerarquiaDto<Folder>> jerarquiaChildren(Folder filterAb0477s00, JQGridRequestDto jqGridRequestDto);
    
}


