package com.ejie.ab63.dao;

import java.util.List;

import com.ejie.ab63.model.TipoAseo;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6316s00Dao  
 * 
 *  
 */

public interface TipoAseoDao {

	/**
	 * Inserts a single row in the Ab6316s00 table.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @return Ab6316s00
	 */
	TipoAseo add(TipoAseo ab6316s00);

	/**
	 * Updates a single row in the Ab6316s00 table.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @return Ab6316s00
	 */
	TipoAseo update(TipoAseo ab6316s00);

	/**
	 * Finds a single row in the Ab6316s00 table.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @return Ab6316s00
	 */
	TipoAseo find(TipoAseo ab6316s00);

	/**
	 * Removes a single row in the Ab6316s00 table.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 */
	void remove(TipoAseo ab6316s00);

	/**
	 * Finds a List of rows in the Ab6316s00 table.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<TipoAseo> findAll(TipoAseo ab6316s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab6316s00 table using like.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<TipoAseo> findAllLike(TipoAseo ab6316s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6316s00 table.
	 *
	 * @param filterAb6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(TipoAseo filterAb6316s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6316s00 table using like.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(TipoAseo ab6316s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6316s00 table.
	 *
	 * @param ab6316s00
	 *            Ab6316s00
	 * @return Long
	 */
	Long findAllCount(TipoAseo ab6316s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6316s00>>
	 */
	List<TableRowDto<TipoAseo>> reorderSelection(TipoAseo filterAb6316s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6316s00
	 *            Ab6316s00
	 * @param searchAb6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6316s00>>
	 */
	List<TableRowDto<TipoAseo>> search(TipoAseo filterAb6316s00, TipoAseo searchAb6316s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6316s00 table.
	 *
	 * @param filterAb6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6316s00>>
	 */
	List<JerarquiaDto<TipoAseo>> findAllLikeJerarquia(TipoAseo filterAb6316s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(TipoAseo filterAb6316s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6316s00
	 *            Ab6316s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6316s00>>
	 */
	List<TableRowDto<TipoAseo>> findAllChild(TipoAseo filterAb6316s00, JQGridRequestDto jqGridRequestDto);

}
