package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6336s00Dao  
 * 
 *  
 */

public interface TipoFranquiciaDao {

	/**
	 * Inserts a single row in the Ab6336s00 table.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 * @return Ab6336s00
	 */
	TipoFranquicia add(TipoFranquicia ab6336s00);

	/**
	 * Updates a single row in the Ab6336s00 table.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 * @return Ab6336s00
	 */
	TipoFranquicia update(TipoFranquicia ab6336s00);

	/**
	 * Finds a single row in the Ab6336s00 table.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 * @return Ab6336s00
	 */
	TipoFranquicia find(TipoFranquicia ab6336s00);

	/**
	 * Removes a single row in the Ab6336s00 table.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 */
	void remove(TipoFranquicia ab6336s00);

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

	/**
	 * Finds rows in the Ab6336s00 table using like.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<TipoFranquicia> findAllLike(TipoFranquicia ab6336s00, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6336s00 table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6336s00 table using like.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(TipoFranquicia ab6336s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6336s00 table.
	 *
	 * @param ab6336s00
	 *            Ab6336s00
	 * @return Long
	 */
	Long findAllCount(TipoFranquicia ab6336s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6336s00>>
	 */
	List<TableRowDto<TipoFranquicia>> reorderSelection(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param searchAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6336s00>>
	 */
	List<TableRowDto<TipoFranquicia>> search(TipoFranquicia filterAb6336s00, TipoFranquicia searchAb6336s00,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6336s00 table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List<JerarquiaDto<Ab6336s00>>
	 */
	List<JerarquiaDto<TipoFranquicia>> findAllLikeJerarquia(TipoFranquicia filterAb6336s00,
			TableRequestDto tableRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List<TableRowDto<Ab6336s00>>
	 */
	List<TableRowDto<TipoFranquicia>> findAllChild(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto);

	/**
	 * Exporta Datos al clipBoard
	 *
	 */
	List<TipoFranquicia> getMultiple(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto,
			Boolean startsWith);

}
