package com.huimv.sj.dao; import java.util.List; import java.util.Map; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import com.huimv.busi.xt.constant.XtSqlMapConstant; import com.huimv.sj.dataobject.SjEbpjtz; import com.huimv.sj.dataobject.SjEbpjtzExample; public class SjEbpjtzDAOImpl extends SqlMapClientDaoSupport implements SjEbpjtzDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public SjEbpjtzDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int countByExample(SjEbpjtzExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("sj_ebpjtz.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int deleteByExample(SjEbpjtzExample example) { int rows = getSqlMapClientTemplate().delete("sj_ebpjtz.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int deleteByPrimaryKey(Integer id) { SjEbpjtz key = new SjEbpjtz(); key.setId(id); int rows = getSqlMapClientTemplate().delete("sj_ebpjtz.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public void insert(SjEbpjtz record) { getSqlMapClientTemplate().insert("sj_ebpjtz.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public void insertSelective(SjEbpjtz record) { getSqlMapClientTemplate().insert("sj_ebpjtz.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ @SuppressWarnings("unchecked") public List selectByExample(SjEbpjtzExample example) { List list = getSqlMapClientTemplate().queryForList("sj_ebpjtz.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public SjEbpjtz selectByPrimaryKey(Integer id) { SjEbpjtz key = new SjEbpjtz(); key.setId(id); SjEbpjtz record = (SjEbpjtz) getSqlMapClientTemplate().queryForObject("sj_ebpjtz.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int updateByExampleSelective(SjEbpjtz record, SjEbpjtzExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("sj_ebpjtz.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int updateByExample(SjEbpjtz record, SjEbpjtzExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("sj_ebpjtz.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int updateByPrimaryKeySelective(SjEbpjtz record) { int rows = getSqlMapClientTemplate().update("sj_ebpjtz.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ public int updateByPrimaryKey(SjEbpjtz record) { int rows = getSqlMapClientTemplate().update("sj_ebpjtz.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table sj_ebpjtz * * @ibatorgenerated Tue Aug 25 14:15:34 CST 2015 */ private static class UpdateByExampleParms extends SjEbpjtzExample { private Object record; public UpdateByExampleParms(Object record, SjEbpjtzExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } /** * 获取耳标的最早一次访问 */ @SuppressWarnings("unchecked") public List selectEbfwjlStart(Map paramMap) { List list = (List) getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_EBFWJL_START, paramMap); return list; } }