package com.huimv.xt.dao; import com.huimv.xt.dataobject.XtJsqxExample; import com.huimv.xt.dataobject.XtJsqxKey; import java.util.List; import java.util.Map; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class XtJsqxDAOImpl extends SqlMapClientDaoSupport implements XtJsqxDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public XtJsqxDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public int countByExample(XtJsqxExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_jsqx.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public int deleteByExample(XtJsqxExample example) { int rows = getSqlMapClientTemplate().delete("xt_jsqx.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public int deleteByPrimaryKey(XtJsqxKey key) { int rows = getSqlMapClientTemplate().delete("xt_jsqx.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public void insert(XtJsqxKey record) { getSqlMapClientTemplate().insert("xt_jsqx.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public void insertSelective(XtJsqxKey record) { getSqlMapClientTemplate().insert("xt_jsqx.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ @SuppressWarnings("unchecked") public List selectByExample(XtJsqxExample example) { List list = getSqlMapClientTemplate().queryForList("xt_jsqx.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public int updateByExampleSelective(XtJsqxKey record, XtJsqxExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_jsqx.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ public int updateByExample(XtJsqxKey record, XtJsqxExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_jsqx.ibatorgenerated_updateByExample", parms); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table xt_jsqx * * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014 */ private static class UpdateByExampleParms extends XtJsqxExample { private Object record; public UpdateByExampleParms(Object record, XtJsqxExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } @Override public List selectByParam(Map param) { List list = getSqlMapClientTemplate().queryForList("select.jsqx.by.param", param); return list; } }