package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6317s00Dao  
 * 
 *  
 */

public interface TipoHabitacionDao {

	/**
	 * Inserts a single row in the Ab6317s00 table.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 * @return Ab6317s00
	 */
	TipoHabitacion add(TipoHabitacion ab6317s00);

	/**
	 * Updates a single row in the Ab6317s00 table.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 * @return Ab6317s00
	 */
	TipoHabitacion update(TipoHabitacion ab6317s00);

	/**
	 * Finds a single row in the Ab6317s00 table.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 * @return Ab6317s00
	 */
	TipoHabitacion find(TipoHabitacion ab6317s00);

	/**
	 * Removes a single row in the Ab6317s00 table.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 */
	void remove(TipoHabitacion ab6317s00);

	/**
	 * Finds a List of rows in the Ab6317s00 table.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<TipoHabitacion> findAll(TipoHabitacion ab6317s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6317s00 table.
	 *
	 * @param filterAb6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(TipoHabitacion filterAb6317s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6317s00 table using like.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(TipoHabitacion ab6317s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6317s00 table.
	 *
	 * @param ab6317s00
	 *            Ab6317s00
	 * @return Long
	 */
	Long findAllCount(TipoHabitacion ab6317s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6317s00>>
	 */
	List<TableRowDto<TipoHabitacion>> reorderSelection(TipoHabitacion filterAb6317s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6317s00
	 *            Ab6317s00
	 * @param searchAb6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6317s00>>
	 */
	List<TableRowDto<TipoHabitacion>> search(TipoHabitacion filterAb6317s00, TipoHabitacion searchAb6317s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6317s00 table.
	 *
	 * @param filterAb6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6317s00>>
	 */
	List<JerarquiaDto<TipoHabitacion>> findAllLikeJerarquia(TipoHabitacion filterAb6317s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(TipoHabitacion filterAb6317s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6317s00
	 *            Ab6317s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6317s00>>
	 */
	List<TableRowDto<TipoHabitacion>> findAllChild(TipoHabitacion filterAb6317s00, JQGridRequestDto jqGridRequestDto);

}
