package com.huimv.xt.dao; import com.huimv.xt.dataobject.XtHzzd; import com.huimv.xt.dataobject.XtHzzdExample; import java.util.List; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class XtHzzdDAOImpl extends SqlMapClientDaoSupport implements XtHzzdDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public XtHzzdDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int countByExample(XtHzzdExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_hzzd.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int deleteByExample(XtHzzdExample example) { int rows = getSqlMapClientTemplate().delete("xt_hzzd.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int deleteByPrimaryKey(Integer xh) { XtHzzd key = new XtHzzd(); key.setXh(xh); int rows = getSqlMapClientTemplate().delete("xt_hzzd.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public void insert(XtHzzd record) { getSqlMapClientTemplate().insert("xt_hzzd.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public void insertSelective(XtHzzd record) { getSqlMapClientTemplate().insert("xt_hzzd.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ @SuppressWarnings("unchecked") public List selectByExample(XtHzzdExample example) { List list = getSqlMapClientTemplate().queryForList("xt_hzzd.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public XtHzzd selectByPrimaryKey(Integer xh) { XtHzzd key = new XtHzzd(); key.setXh(xh); XtHzzd record = (XtHzzd) getSqlMapClientTemplate().queryForObject("xt_hzzd.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int updateByExampleSelective(XtHzzd record, XtHzzdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_hzzd.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int updateByExample(XtHzzd record, XtHzzdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_hzzd.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int updateByPrimaryKeySelective(XtHzzd record) { int rows = getSqlMapClientTemplate().update("xt_hzzd.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ public int updateByPrimaryKey(XtHzzd record) { int rows = getSqlMapClientTemplate().update("xt_hzzd.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table xt_hzzd * * @ibatorgenerated Wed Jun 04 12:11:08 CST 2014 */ private static class UpdateByExampleParms extends XtHzzdExample { private Object record; public UpdateByExampleParms(Object record, XtHzzdExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } }