package com.ejie.ab04b.dao;

import java.util.List;

import com.ejie.ab04b.model.Promotor;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab0485s00Dao generated by UDA, 21-feb-2017 13:23:33.
 * 
 * @author UDA
 */

public interface PromotorDao {

	/**
	 * Inserts a single row in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  Ab0485s00
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the promotor
	 */
	Promotor add(Promotor ab0485s00);

	/**
	 * Inserts a single row in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  Ab0485s00
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the promotor
	 */
	Promotor addFromSolicitud(Promotor ab0485s00);

	/**
	 * Updates a single row in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  Ab0485s00
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the promotor
	 */
	Promotor update(Promotor ab0485s00);

	/**
	 * Finds a single row in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  Ab0485s00
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the promotor
	 */
	Promotor find(Promotor ab0485s00);

	/**
	 * Finds a single row in the Ab0483s00 table.
	 * 
	 *  ab0485s00
	 *            Promotor
	 *  List<Promotor>
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the list
	 */
	List<Promotor> findPromotorMaxFecAlta(Promotor ab0485s00);

	/**
	 * Counts rows in the Personas table.
	 * 
	 *  ab0485s00
	 *            Promotor
	 *  Long
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the long
	 */
	long buscarHayPromotorPrincipal(Promotor ab0485s00);

	/**
	 * Removes a single row in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 */
	void remove(Promotor ab0485s00);

	/**
	 * Finds a List of rows in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<Promotor> findAll(Promotor ab0485s00,
			JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab0485s00 table.
	 * 
	 *  filterAb0485s00
	 *            Ab0485s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *
	 * @param filterAb0485s00 the filter ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 */
	void removeMultiple(Promotor filterAb0485s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab0485s00 table using like.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(Promotor ab0485s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0485s00 table.
	 * 
	 *  ab0485s00
	 *            Ab0485s00
	 *  Long
	 *
	 * @param ab0485s00 the ab 0485 s 00
	 * @return the long
	 */
	Long findAllCount(Promotor ab0485s00);

	/**
	 * Reorder selection.
	 * 
	 *  filterAb0485s00
	 *            Ab0485s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0485s00>>
	 *
	 * @param filterAb0485s00 the filter ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<Promotor>> reorderSelection(Promotor filterAb0485s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0485s00
	 *            Ab0485s00
	 *  searchAb0485s00
	 *            Ab0485s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0485s00>>
	 *
	 * @param filterAb0485s00 the filter ab 0485 s 00
	 * @param searchAb0485s00 the search ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<Promotor>> search(Promotor filterAb0485s00,
			Promotor searchAb0485s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab0485s00 table.
	 * 
	 *  filterAb0485s00
	 *            Ab0485s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List<JerarquiaDto<Ab0485s00>>
	 *
	 * @param filterAb0485s00 the filter ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<JerarquiaDto<Promotor>> findAllLikeJerarquia(Promotor filterAb0485s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy.
	 * 
	 *  filterAb0485s00            Ab0485s00
	 *  jqGridRequestDto            JQGridRequestDto
	 *  Long
	 *
	 * @param filterAb0485s00 the filter ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the long
	 */
	Long findAllLikeCountJerarquia(Promotor filterAb0485s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows.
	 * 
	 *  filterAb0485s00            Ab0485s00
	 *  jqGridRequestDto            JQGridRequestDto
	 *  List<TableRowDto<Ab0485s00>>
	 *
	 * @param filterAb0485s00 the filter ab 0485 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<TableRowDto<Promotor>> findAllChild(Promotor filterAb0485s00,
			JQGridRequestDto jqGridRequestDto);

}
