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.M62fbCallesDao;
import com.ejie.m62fb.model.M62fbCalles;
import com.ejie.x38.dto.Pagination;

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

@Service(value = "m62fbCallesService")
public class M62fbCallesServiceImpl implements M62fbCallesService {

	@Autowired
	private M62fbCallesDao m62fbCallesDao;

	/**
	 * Finds a single row in the M62fbCalles table.
	 * 
	 * @param m62fbCalles
	 *            M62fbCalles
	 * @return M62fbCalles
	 */
	public M62fbCalles find(M62fbCalles m62fbCalles) {
		return (M62fbCalles) this.m62fbCallesDao.find(m62fbCalles);
	}

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

	/**
	 * Counts rows in the M62fbCalles table.
	 * 
	 * @param m62fbCalles
	 *            M62fbCalles
	 * @return Long
	 */
	public Long findAllCount(M62fbCalles m62fbCalles) {
		return this.m62fbCallesDao.findAllCount(m62fbCalles);
	}

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

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

}
