package com.huimv.xt.dao; import com.huimv.busi.xt.constant.XtSqlMapConstant; import com.huimv.busi.xt.utils.StringUtils; import com.huimv.xt.dataobject.XtFlzzd; import com.huimv.xt.dataobject.XtFlzzdExample; import com.huimv.xt.dataobject.XtSbcs; import java.util.List; import java.util.Map; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class XtFlzzdDAOImpl extends SqlMapClientDaoSupport implements XtFlzzdDAO { /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public XtFlzzdDAOImpl() { super(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int countByExample(XtFlzzdExample example) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_flzzd.ibatorgenerated_countByExample", example); return count; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int deleteByExample(XtFlzzdExample example) { int rows = getSqlMapClientTemplate().delete("xt_flzzd.ibatorgenerated_deleteByExample", example); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int deleteByPrimaryKey(Integer id) { XtFlzzd key = new XtFlzzd(); key.setId(id); int rows = getSqlMapClientTemplate().delete("xt_flzzd.ibatorgenerated_deleteByPrimaryKey", key); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public void insert(XtFlzzd record) { getSqlMapClientTemplate().insert("xt_flzzd.ibatorgenerated_insert", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public void insertSelective(XtFlzzd record) { getSqlMapClientTemplate().insert("xt_flzzd.ibatorgenerated_insertSelective", record); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ @SuppressWarnings("unchecked") public List selectByExample(XtFlzzdExample example) { List list = getSqlMapClientTemplate().queryForList("xt_flzzd.ibatorgenerated_selectByExample", example); return list; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public XtFlzzd selectByPrimaryKey(Integer id) { XtFlzzd key = new XtFlzzd(); key.setId(id); XtFlzzd record = (XtFlzzd) getSqlMapClientTemplate().queryForObject("xt_flzzd.ibatorgenerated_selectByPrimaryKey", key); return record; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int updateByExampleSelective(XtFlzzd record, XtFlzzdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByExampleSelective", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int updateByExample(XtFlzzd record, XtFlzzdExample example) { UpdateByExampleParms parms = new UpdateByExampleParms(record, example); int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByExample", parms); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int updateByPrimaryKeySelective(XtFlzzd record) { int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ public int updateByPrimaryKey(XtFlzzd record) { int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByPrimaryKey", record); return rows; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table xt_flzzd * * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014 */ private static class UpdateByExampleParms extends XtFlzzdExample { private Object record; public UpdateByExampleParms(Object record, XtFlzzdExample example) { super(example); this.record = record; } public Object getRecord() { return record; } } public int countXtFlzzdByParam(Map searchParam) { Integer count = (Integer) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_SELECT_FLZZD_BY_PARAM,searchParam); return count == null ? 0 : count; } public List getXtFlzzdListByParam(Map searchParam) { List list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_FLZZD_BY_PARAM,searchParam); return list; } }