package com.ejie.ab63.dao;

import java.util.List;

import com.ejie.ab63.model.Ab6343s00;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6343s00Dao  
 *  
 */

public interface Ab6343s00Dao {
    
    /**
     * Inserts a single row in the Ab6343s00 table.
     *
     * @param ab6343s00 Ab6343s00
     * @return Ab6343s00
     */
    Ab6343s00 add(Ab6343s00 ab6343s00);

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

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

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

    /**
     * Finds a List of rows in the Ab6343s00 table.
     *
     * @param ab6343s00 Ab6343s00
     * @param tableRequestDto TableRequestDto
     * @return List
     */
    List<Ab6343s00> findAll(Ab6343s00 ab6343s00, TableRequestDto tableRequestDto);

	/**
     * Finds rows in the Ab6343s00 table using like.
     *
     * @param ab6343s00 Ab6343s00
     * @param tableRequestDto TableRequestDto
     * @param startsWith Boolean
     * @return List
     */
	List<Ab6343s00> findAllLike(Ab6343s00 ab6343s00, TableRequestDto tableRequestDto, Boolean startsWith);
	
	
	/*
	 * OPERACIONES RUP_TABLE
	 */
	 
	/**
	 * Filter in the Ab6343s00 table.
	 *
	 * @param filterAb6343s00 Ab6343s00
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 */	
	 void removeMultiple(Ab6343s00 filterAb6343s00, TableRequestDto tableRequestDto, Boolean startsWith);
	
	
    /**
     * Counts rows in the Ab6343s00 table using like.
     *
     * @param ab6343s00 Ab6343s00
     * @param startsWith Boolean
     * @return Long
     */
    Long findAllLikeCount(Ab6343s00 ab6343s00, Boolean startsWith);
    
    /**
     * Counts rows in the Ab6343s00 table.
     *
     * @param ab6343s00 Ab6343s00
     * @return Long
     */
    Long findAllCount(Ab6343s00 ab6343s00);
    
    /**
	 * Reorder selection.
	 *
	 * @param filterAb6343s00 Ab6343s00
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<Ab6343s00>>
	 */	
    List<TableRowDto<Ab6343s00>> reorderSelection(Ab6343s00 filterAb6343s00, TableRequestDto tableRequestDto, Boolean startsWith);
    
     /**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6343s00 Ab6343s00
	 * @param searchAb6343s00 Ab6343s00
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<Ab6343s00>>	 
	 */	
    List<TableRowDto<Ab6343s00>> search(Ab6343s00 filterAb6343s00, Ab6343s00 searchAb6343s00, TableRequestDto tableRequestDto, Boolean startsWith);

    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
    
    /**
	 * Filter in the hierarchical Ab6343s00 table.
	 *
	 * @param filterAb6343s00 Ab6343s00
	 * @param tableRequestDto TableRequestDto
	 * @return List<JerarquiaDto<Ab6343s00>>
	 */	
	List<JerarquiaDto<Ab6343s00>> findAllLikeJerarquia(Ab6343s00 filterAb6343s00, TableRequestDto tableRequestDto);
	
	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6343s00 Ab6343s00
	 * @param tableRequestDto TableRequestDto
	 * @return Long
	 */	
	Long findAllLikeCountJerarquia(Ab6343s00 filterAb6343s00, TableRequestDto tableRequestDto);
	
	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6343s00 Ab6343s00
	 * @param tableRequestDto TableRequestDto
	 * @return List<TableRowDto<Ab6343s00>>
	 */	
	List<TableRowDto<Ab6343s00>> findAllChild(Ab6343s00 filterAb6343s00, TableRequestDto tableRequestDto);
	
	/**
    * Exporta Datos al clipBoard
    *
    */
    List<Ab6343s00> getMultiple(Ab6343s00 filterAb6343s00, TableRequestDto tableRequestDto, Boolean startsWith);
	
}

