package com.huimv.bjq.dao; import com.huimv.bjq.dataobject.BjqWd; import com.huimv.bjq.dataobject.BjqWdExample; import com.huimv.busi.xt.constant.XtSqlMapConstant; import java.util.List; import java.util.Map; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class BjqWdDAOImpl extends SqlMapClientDaoSupport implements BjqWdDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public BjqWdDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int countByExample(BjqWdExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("bjq_wd.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int deleteByExample(BjqWdExample example) { int rows = getSqlMapClientTemplate().delete("bjq_wd.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int deleteByPrimaryKey(Integer id) { BjqWd key = new BjqWd(); key.setId(id); int rows = getSqlMapClientTemplate().delete("bjq_wd.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public void insert(BjqWd record) { getSqlMapClientTemplate().insert("bjq_wd.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public void insertSelective(BjqWd record) { getSqlMapClientTemplate().insert("bjq_wd.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ @SuppressWarnings("unchecked") public List selectByExample(BjqWdExample example) { List list = getSqlMapClientTemplate().queryForList("bjq_wd.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public BjqWd selectByPrimaryKey(Integer id) { BjqWd key = new BjqWd(); key.setId(id); BjqWd record = (BjqWd) getSqlMapClientTemplate().queryForObject("bjq_wd.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int updateByExampleSelective(BjqWd record, BjqWdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("bjq_wd.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int updateByExample(BjqWd record, BjqWdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("bjq_wd.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int updateByPrimaryKeySelective(BjqWd record) { int rows = getSqlMapClientTemplate().update("bjq_wd.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ public int updateByPrimaryKey(BjqWd record) { int rows = getSqlMapClientTemplate().update("bjq_wd.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table bjq_wd * * @ibatorgenerated Tue Jun 23 15:33:09 CST 2015 */ private static class UpdateByExampleParms extends BjqWdExample { private Object record; public UpdateByExampleParms(Object record, BjqWdExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } public int countBjqWdByParam(Map searchParam) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_BJQWD_BY_PARAM, searchParam); return count == null ? 0 : count; } @SuppressWarnings("unchecked") public List selectBjqWdByParam(Map searchParam) { List list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_BJQWD_BY_PARAM, searchParam); return list; } }