package com.ejie.m62fb.dao;

import com.ejie.x38.dto.Pagination;
import java.util.List;

import com.ejie.m62fb.model.M62fbr46s0s00;

/**
 * M62fbr46s0s00Dao generated by UDA, 17-oct-2012 15:03:37.
 * 
XXXX
 */

public interface M62fbr46s0s00Dao {

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

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

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

	/**
	 * Deletes a single row in the M62fbr46s0s00 table.
	 * 
	 * @param m62fbr46s0s00
	 *            M62fbr46s0s00
	 * @return
	 */
	void remove(M62fbr46s0s00 m62fbr46s0s00);

	/**
	 * Finds a List of rows in the M62fbr46s0s00 table.
	 * 
	 * @param m62fbr46s0s00
	 *            M62fbr46s0s00
	 * @param pagination
	 *            Pagination
	 * @return List
	 */
	List<M62fbr46s0s00> findAll(M62fbr46s0s00 m62fbr46s0s00,
			Pagination pagination);

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

	/**
	 * Finds rows in the M62fbr46s0s00 table using like.
	 * 
	 * @param m62fbr46s0s00
	 *            M62fbr46s0s00
	 * @param pagination
	 *            Pagination
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	List<M62fbr46s0s00> findAllLike(M62fbr46s0s00 m62fbr46s0s00,
			Pagination pagination, Boolean startsWith);

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

	/**
	 * Actualiza en una incidencia de la tabla Incidencias, los campos que no se
	 * hayan informado nulos
	 * 
	 * @param viviendas
	 *            M62fbr46s0s00
	 * @return
	 */
	void addvivMasivasOfer(M62fbr46s0s00 viviendas);

	/**
	 * Counts rows in the valViviendasSel.
	 * 
	 * @param listadoVivs
	 *            String
	 * @return Long
	 */
	Long valViviendasSel(String listadoVivs);

	/**
	 * Counts rows in the valViviendasSelOfer.
	 * 
	 * @param listadoVivs
	 *            String
	 * @return Long
	 */
	Long valViviendasSelOfer(String listadoVivs);

}
