package com.ejie.m62fb.dao.registroVPP;

import java.util.List;

import com.ejie.m62fb.model.Inquilino;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * InquilinoDao generated by UDA, 21-oct-2015 14:17:46.
 * 
XXXX
 */

public interface InquilinoDao {

	/**
	 * Inserts a single row in the Inquilino table.
	 * 
	 * @param inquilino
	 *            Inquilino
	 * @return Inquilino
	 */
	Inquilino add(Inquilino inquilino);

	/**
	 * Updates a single row in the Inquilino table.
	 * 
	 * @param inquilino
	 *            Inquilino
	 * @return Inquilino
	 */
	Inquilino update(Inquilino inquilino);

	/**
	 * Finds a single row in the Inquilino table.
	 * 
	 * @param inquilino
	 *            Inquilino
	 * @return Inquilino
	 */
	Inquilino find(Inquilino inquilino);

	/**
	 * Finds a single row in the Inquilino table.
	 * 
	 * @param inquilino
	 *            Inquilino
	 * @return Inquilino
	 */
	Inquilino findForUpdate(Inquilino inquilino);

	/**
	 * Removes a single row in the Inquilino table.
	 * 
	 * @param inquilino
	 *            Inquilino
	 */
	void remove(Inquilino inquilino);

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */
	/**
	 * Counts rows in the Inquilino table using like.
	 * 
	 * @param inquilino
	 *            Inquilino
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	Long findAllLikeCount(Inquilino inquilino, Boolean startsWith);

	/**
	 * Counts rows in the Inquilino table.
	 * 
	 * @param inquilino
	 *            Inquilino
	 * @return Long
	 */
	Long findAllCount(Inquilino inquilino);

	/**
	 * Reorder selection.
	 * 
	 * @param filterInquilino
	 *            Inquilino
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Inquilino>>
	 */
	List<TableRowDto<Inquilino>> reorderSelection(Inquilino filterInquilino,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);
}
