123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- 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<XtJsqxKey> selectByExample(XtJsqxExample example) {
- List<XtJsqxKey> 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<XtJsqxKey> selectByParam(Map<String, Object> param) {
- List<XtJsqxKey> list = getSqlMapClientTemplate().queryForList("select.jsqx.by.param", param);
- return list;
- }
- }
|