package com.huimv.xt.dao; import com.huimv.xt.dataobject.XtWxh; import com.huimv.xt.dataobject.XtWxhExample; import java.util.List; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class XtWxhDAOImpl extends SqlMapClientDaoSupport implements XtWxhDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public XtWxhDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public int countByExample(XtWxhExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_wxh.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public int deleteByExample(XtWxhExample example) { int rows = getSqlMapClientTemplate().delete("xt_wxh.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void insert(XtWxh record) { getSqlMapClientTemplate().insert("xt_wxh.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void insertSelective(XtWxh record) { getSqlMapClientTemplate().insert("xt_wxh.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ @SuppressWarnings("unchecked") public List selectByExample(XtWxhExample example) { List list = getSqlMapClientTemplate().queryForList("xt_wxh.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public int updateByExampleSelective(XtWxh record, XtWxhExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_wxh.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public int updateByExample(XtWxh record, XtWxhExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_wxh.ibatorgenerated_updateByExample", parms); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ private static class UpdateByExampleParms extends XtWxhExample { private Object record; public UpdateByExampleParms(Object record, XtWxhExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } }