package com.huimv.da.dao; import com.huimv.busi.xt.constant.XtSqlMapConstant; import com.huimv.da.dataobject.DaQyda; import com.huimv.da.dataobject.DaQydaExample; import java.util.List; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class DaQydaDAOImpl extends SqlMapClientDaoSupport implements DaQydaDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public DaQydaDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int countByExample(DaQydaExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("da_qyda.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int deleteByExample(DaQydaExample example) { int rows = getSqlMapClientTemplate().delete("da_qyda.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int deleteByPrimaryKey(Integer id) { DaQyda key = new DaQyda(); key.setId(id); int rows = getSqlMapClientTemplate().delete("da_qyda.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public void insert(DaQyda record) { getSqlMapClientTemplate().insert("da_qyda.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public void insertSelective(DaQyda record) { getSqlMapClientTemplate().insert("da_qyda.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ @SuppressWarnings("unchecked") public List selectByExample(DaQydaExample example) { List list = getSqlMapClientTemplate().queryForList("da_qyda.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public DaQyda selectByPrimaryKey(Integer id) { DaQyda key = new DaQyda(); key.setId(id); DaQyda record = (DaQyda) getSqlMapClientTemplate().queryForObject("da_qyda.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int updateByExampleSelective(DaQyda record, DaQydaExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("da_qyda.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int updateByExample(DaQyda record, DaQydaExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("da_qyda.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int updateByPrimaryKeySelective(DaQyda record) { int rows = getSqlMapClientTemplate().update("da_qyda.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ public int updateByPrimaryKey(DaQyda record) { int rows = getSqlMapClientTemplate().update("da_qyda.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table da_qyda * * @ibatorgenerated Wed Sep 20 10:22:38 CST 2017 */ private static class UpdateByExampleParms extends DaQydaExample { private Object record; public UpdateByExampleParms(Object record, DaQydaExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } @Override public List selectQydaListByMcid(int mcid) { DaQyda key = new DaQyda(); key.setMcid(mcid); List qydaList = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_ZSQYLIST_BY_MCID, key); return qydaList; } }