package com.huimv.sjlr.dao; import java.util.List; import java.util.Map; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import com.huimv.busi.xt.constant.XtSqlMapConstant; import com.huimv.sjlr.dataobject.SjlrZzwd; import com.huimv.sjlr.dataobject.SjlrZzwdExample; public class SjlrZzwdDAOImpl extends SqlMapClientDaoSupport implements SjlrZzwdDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public SjlrZzwdDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int countByExample(SjlrZzwdExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("sjlr_zzwd.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int deleteByExample(SjlrZzwdExample example) { int rows = getSqlMapClientTemplate().delete("sjlr_zzwd.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int deleteByPrimaryKey(Integer id) { SjlrZzwd key = new SjlrZzwd(); key.setId(id); int rows = getSqlMapClientTemplate().delete("sjlr_zzwd.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public void insert(SjlrZzwd record) { getSqlMapClientTemplate().insert("sjlr_zzwd.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public void insertSelective(SjlrZzwd record) { getSqlMapClientTemplate().insert("sjlr_zzwd.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ @SuppressWarnings("unchecked") public List selectByExample(SjlrZzwdExample example) { List list = getSqlMapClientTemplate().queryForList("sjlr_zzwd.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public SjlrZzwd selectByPrimaryKey(Integer id) { SjlrZzwd key = new SjlrZzwd(); key.setId(id); SjlrZzwd record = (SjlrZzwd) getSqlMapClientTemplate().queryForObject("sjlr_zzwd.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int updateByExampleSelective(SjlrZzwd record, SjlrZzwdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("sjlr_zzwd.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int updateByExample(SjlrZzwd record, SjlrZzwdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("sjlr_zzwd.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int updateByPrimaryKeySelective(SjlrZzwd record) { int rows = getSqlMapClientTemplate().update("sjlr_zzwd.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ public int updateByPrimaryKey(SjlrZzwd record) { int rows = getSqlMapClientTemplate().update("sjlr_zzwd.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table sjlr_zzwd * * @ibatorgenerated Wed Aug 28 11:23:57 CST 2019 */ private static class UpdateByExampleParms extends SjlrZzwdExample { private Object record; public UpdateByExampleParms(Object record, SjlrZzwdExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } public List getZzwdListByParam(Map paramMap) { @SuppressWarnings("unchecked") List zzwdList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_SJLR_ZZWD_BY_PARAM, paramMap); return zzwdList; } }