package com.huimv.xt.dao; import com.huimv.busi.xt.constant.XtSqlMapConstant; import com.huimv.da.dataobject.DaZsda; import com.huimv.xt.dataobject.XtHjbjcs; import com.huimv.xt.dataobject.XtSjpz; import com.huimv.xt.dataobject.XtSjpzExample; import java.util.List; import java.util.Map; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class XtSjpzDAOImpl extends SqlMapClientDaoSupport implements XtSjpzDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public XtSjpzDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int countByExample(XtSjpzExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_sjpz.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int deleteByExample(XtSjpzExample example) { int rows = getSqlMapClientTemplate().delete("xt_sjpz.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int deleteByPrimaryKey(Integer id) { XtSjpz key = new XtSjpz(); key.setId(id); int rows = getSqlMapClientTemplate().delete("xt_sjpz.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public void insert(XtSjpz record) { getSqlMapClientTemplate().insert("xt_sjpz.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public void insertSelective(XtSjpz record) { getSqlMapClientTemplate().insert("xt_sjpz.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ @SuppressWarnings("unchecked") public List selectByExample(XtSjpzExample example) { List list = getSqlMapClientTemplate().queryForList("xt_sjpz.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public XtSjpz selectByPrimaryKey(Integer id) { XtSjpz key = new XtSjpz(); key.setId(id); XtSjpz record = (XtSjpz) getSqlMapClientTemplate().queryForObject("xt_sjpz.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int updateByExampleSelective(XtSjpz record, XtSjpzExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int updateByExample(XtSjpz record, XtSjpzExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int updateByPrimaryKeySelective(XtSjpz record) { int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ public int updateByPrimaryKey(XtSjpz record) { int rows = getSqlMapClientTemplate().update("xt_sjpz.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table xt_sjpz * * @ibatorgenerated Fri Jun 17 13:33:23 CST 2016 */ private static class UpdateByExampleParms extends XtSjpzExample { private Object record; public UpdateByExampleParms(Object record, XtSjpzExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } /** * 根据参数统计 * @param paramMap * @return */ @Override public int countHjbjsjpzByParam(Map paramMap) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_HJBJSJPZ_BY_PARAM, paramMap); return count == null ? 0 : count; } /** * 根据参数查询 * @param paramMap * @return */ @SuppressWarnings("unchecked") @Override public List selectHjbjsjpzByParam(Map paramMap) { List list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_HJBJSJPZ_BY_PARAM, paramMap); return list; } /** * 判断猪舍信息是否重复 */ @SuppressWarnings("unchecked") @Override public List selectHjbjsjpzCheckZsxx(Map paramMap) { List list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_HJBJSJPZ_CHECK_ZSXX, paramMap); return list; } }