package com.ejie.m62fb.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ejie.m62fb.dao.M62fbProvinciasDao;
import com.ejie.m62fb.model.M62fbProvincias;
import com.ejie.x38.dto.Pagination;

/**
 * M62fbProvinciasServiceImpl generated by UDA, 22-oct-2012 12:14:19.
 * 
XXXX
 */

@Service(value = "m62fbProvinciasService")
public class M62fbProvinciasServiceImpl implements M62fbProvinciasService {

	@Autowired
	private M62fbProvinciasDao m62fbProvinciasDao;

	/**
	 * Finds a single row in the M62fbProvincias table.
	 * 
	 * @param m62fbProvincias
	 *            M62fbProvincias
	 * @return M62fbProvincias
	 */
	public M62fbProvincias find(M62fbProvincias m62fbProvincias) {
		return (M62fbProvincias) this.m62fbProvinciasDao.find(m62fbProvincias);
	}

	/**
	 * Finds a List of rows in the M62fbProvincias table.
	 * 
	 * @param m62fbProvincias
	 *            M62fbProvincias
	 * @param pagination
	 *            Pagination
	 * @return List
	 */
	public List<M62fbProvincias> findAll(M62fbProvincias m62fbProvincias,
			Pagination pagination) {
		return (List<M62fbProvincias>) this.m62fbProvinciasDao.findAll(
				m62fbProvincias, pagination);
	}

	/**
	 * Counts rows in the M62fbProvincias table.
	 * 
	 * @param m62fbProvincias
	 *            M62fbProvincias
	 * @return Long
	 */
	public Long findAllCount(M62fbProvincias m62fbProvincias) {
		return this.m62fbProvinciasDao.findAllCount(m62fbProvincias);
	}

	/**
	 * Finds rows in the M62fbProvincias table using like.
	 * 
	 * @param m62fbProvincias
	 *            M62fbProvincias
	 * @param pagination
	 *            Pagination
	 * @param startsWith
	 *            Boolean
	 * @return List
	 */
	public List<M62fbProvincias> findAllLike(M62fbProvincias m62fbProvincias,
			Pagination pagination, Boolean startsWith) {
		return (List<M62fbProvincias>) this.m62fbProvinciasDao.findAllLike(
				m62fbProvincias, pagination, startsWith);
	}

	/**
	 * Counts rows in the M62fbProvincias table using like.
	 * 
	 * @param m62fbProvincias
	 *            M62fbProvincias
	 * @param startsWith
	 *            Boolean
	 * @return Long
	 */
	public Long findAllLikeCount(M62fbProvincias m62fbProvincias,
			Boolean startsWith) {
		return this.m62fbProvinciasDao.findAllLikeCount(m62fbProvincias,
				startsWith);
	}

}
