package com.ejie.ab63.dao;

import java.util.List;

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

/**
 * Ab6326s00Dao  
 * 
 *  
 */

public interface AseoAlojamientoDao {

	/**
	 * Inserts a single row in the Ab6326s00 table.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 * @return Ab6326s00
	 */
	AseoAlojamiento add(AseoAlojamiento ab6326s00);

	/**
	 * Updates a single row in the Ab6326s00 table.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 * @return Ab6326s00
	 */
	AseoAlojamiento update(AseoAlojamiento ab6326s00);

	/**
	 * Finds a single row in the Ab6326s00 table.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 * @return Ab6326s00
	 */
	AseoAlojamiento find(AseoAlojamiento ab6326s00);

	/**
	 * Removes a single row in the Ab6326s00 table.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 */
	void remove(AseoAlojamiento ab6326s00);

	/**
	 * Finds a List of rows in the Ab6326s00 table.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List
	 */
	List<AseoAlojamiento> findAll(AseoAlojamiento ab6326s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab6326s00 table.
	 *
	 * @param filterAb6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(AseoAlojamiento filterAb6326s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab6326s00 table using like.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(AseoAlojamiento ab6326s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab6326s00 table.
	 *
	 * @param ab6326s00
	 *            Ab6326s00
	 * @return Long
	 */
	Long findAllCount(AseoAlojamiento ab6326s00);

	/**
	 * Reorder selection.
	 *
	 * @param filterAb6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6326s00>>
	 */
	List<TableRowDto<AseoAlojamiento>> reorderSelection(AseoAlojamiento filterAb6326s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 *
	 * @param filterAb6326s00
	 *            Ab6326s00
	 * @param searchAb6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6326s00>>
	 */
	List<TableRowDto<AseoAlojamiento>> search(AseoAlojamiento filterAb6326s00, AseoAlojamiento searchAb6326s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab6326s00 table.
	 *
	 * @param filterAb6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<JerarquiaDto<Ab6326s00>>
	 */
	List<JerarquiaDto<AseoAlojamiento>> findAllLikeJerarquia(AseoAlojamiento filterAb6326s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterAb6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return Long
	 */
	Long findAllLikeCountJerarquia(AseoAlojamiento filterAb6326s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterAb6326s00
	 *            Ab6326s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<TableRowDto<Ab6326s00>>
	 */
	List<TableRowDto<AseoAlojamiento>> findAllChild(AseoAlojamiento filterAb6326s00, JQGridRequestDto jqGridRequestDto);

	void deleteByIdAlojamiento(Integer idAlojamiento);

}
