package com.ejie.ab63.service;

import java.util.List;

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

/**
 * Ab6341s00Service  
 * 
 *  
 */

public interface HabitacionViviendaService {

	/**
	 * Inserts a single row in the Ab6341s00 table.
	 *
	 * @param ab6341s00
	 *            Ab6341s00
	 * @return Ab6341s00
	 */
	HabitacionVivienda add(HabitacionVivienda ab6341s00);

	/**
	 * Updates a single row in the Ab6341s00 table.
	 *
	 * @param ab6341s00
	 *            Ab6341s00
	 * @return Ab6341s00
	 */
	HabitacionVivienda update(HabitacionVivienda ab6341s00);

	/**
	 * Finds a single row in the Ab6341s00 table.
	 *
	 * @param ab6341s00
	 *            Ab6341s00
	 * @return Ab6341s00
	 */
	HabitacionVivienda find(HabitacionVivienda ab6341s00);

	/**
	 * Deletes a single row in the Ab6341s00 table.
	 *
	 * @param ab6341s00
	 *            Ab6341s00
	 */
	void remove(HabitacionVivienda ab6341s00);

	/**
	 * Finds a list of rows in the Ab6341s00 table.
	 *
	 * @param ab6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<Ab6341s00>
	 */
	List<HabitacionVivienda> findAll(HabitacionVivienda ab6341s00, JQGridRequestDto jqGridRequestDto);

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6341s00 table.
	 *
	 * @param filterAb6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(HabitacionVivienda filterAb6341s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6341s00 table.
	 *
	 * @param filterAb6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6341s00>
	 */
	JQGridResponseDto<HabitacionVivienda> filter(HabitacionVivienda filterAb6341s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the Ab6341s00 table.
	 *
	 * @param filterAb6341s00
	 *            Ab6341s00
	 * @param searchAb6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6341s00>>
	 */
	List<TableRowDto<HabitacionVivienda>> search(HabitacionVivienda filterAb6341s00, HabitacionVivienda searchAb6341s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6341s00 table.
	 *
	 * @param filterAb6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(HabitacionVivienda filterAb6341s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Ab6341s00 table.
	 *
	 * @param filterAb6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<JerarquiaDto<Ab6341s00>>
	 */
	JQGridResponseDto<JerarquiaDto<HabitacionVivienda>> jerarquia(HabitacionVivienda filterAb6341s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Ab6341s00 table.
	 *
	 * @param filterAb6341s00
	 *            Ab6341s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return JQGridResponseDto<JerarquiaDto<Ab6341s00>>
	 */
	JQGridResponseDto<JerarquiaDto<HabitacionVivienda>> jerarquiaChildren(HabitacionVivienda filterAb6341s00,
			JQGridRequestDto jqGridRequestDto);

}
