package com.huimv.whh.dao; import com.huimv.whh.dataobject.WhhStsj; import com.huimv.whh.dataobject.WhhStsjExample; import java.util.List; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class WhhStsjDAOImpl extends SqlMapClientDaoSupport implements WhhStsjDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public WhhStsjDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int countByExample(WhhStsjExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("whh_stsj.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int deleteByExample(WhhStsjExample example) { int rows = getSqlMapClientTemplate().delete("whh_stsj.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int deleteByPrimaryKey(Integer id) { WhhStsj key = new WhhStsj(); key.setId(id); int rows = getSqlMapClientTemplate().delete("whh_stsj.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public void insert(WhhStsj record) { getSqlMapClientTemplate().insert("whh_stsj.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public void insertSelective(WhhStsj record) { getSqlMapClientTemplate().insert("whh_stsj.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ @SuppressWarnings("unchecked") public List selectByExample(WhhStsjExample example) { List list = getSqlMapClientTemplate().queryForList("whh_stsj.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public WhhStsj selectByPrimaryKey(Integer id) { WhhStsj key = new WhhStsj(); key.setId(id); WhhStsj record = (WhhStsj) getSqlMapClientTemplate().queryForObject("whh_stsj.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int updateByExampleSelective(WhhStsj record, WhhStsjExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("whh_stsj.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int updateByExample(WhhStsj record, WhhStsjExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("whh_stsj.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int updateByPrimaryKeySelective(WhhStsj record) { int rows = getSqlMapClientTemplate().update("whh_stsj.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ public int updateByPrimaryKey(WhhStsj record) { int rows = getSqlMapClientTemplate().update("whh_stsj.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table whh_stsj * * @ibatorgenerated Thu Jun 28 17:02:11 CST 2018 */ private static class UpdateByExampleParms extends WhhStsjExample { private Object record; public UpdateByExampleParms(Object record, WhhStsjExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } }