package com.ejie.ab63.service;

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.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6336s00Service  
 * 
 *  
 */

public interface TipoFranquiciaService {

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

	/**
	 * Deletes 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<Ab6336s00>
	 */
	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<Ab6336s00>
	 */
	List<TipoFranquicia> findAllLike(TipoFranquicia ab6336s00, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

	/**
	 * Filter method in the Ab6336s00 table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return TableResponseDto<Ab6336s00>
	 */
	TableResponseDto<TipoFranquicia> filter(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the Ab6336s00 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);

	/**
	 * Reorder the selection made in Ab6336s00 table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(TipoFranquicia filterAb6336s00, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Ab6336s00 table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return TableResponseDto<JerarquiaDto<Ab6336s00>>
	 */
	TableResponseDto<JerarquiaDto<TipoFranquicia>> jerarquia(TipoFranquicia filterAb6336s00,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Ab6336s00 table.
	 *
	 * @param filterAb6336s00
	 *            Ab6336s00
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<Ab6336s00>>
	 */
	TableResponseDto<JerarquiaDto<TipoFranquicia>> jerarquiaChildren(TipoFranquicia filterAb6336s00,
			TableRequestDto tableRequestDto);

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

}
