XtFlzzdDAOImpl.java 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. package com.huimv.xt.dao;
  2. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  3. import com.huimv.busi.xt.utils.StringUtils;
  4. import com.huimv.xt.dataobject.XtFlzzd;
  5. import com.huimv.xt.dataobject.XtFlzzdExample;
  6. import com.huimv.xt.dataobject.XtSbcs;
  7. import java.util.List;
  8. import java.util.Map;
  9. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  10. public class XtFlzzdDAOImpl extends SqlMapClientDaoSupport implements XtFlzzdDAO {
  11. /**
  12. * This method was generated by Apache iBATIS ibator.
  13. * This method corresponds to the database table xt_flzzd
  14. *
  15. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  16. */
  17. public XtFlzzdDAOImpl() {
  18. super();
  19. }
  20. /**
  21. * This method was generated by Apache iBATIS ibator.
  22. * This method corresponds to the database table xt_flzzd
  23. *
  24. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  25. */
  26. public int countByExample(XtFlzzdExample example) {
  27. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_flzzd.ibatorgenerated_countByExample", example);
  28. return count;
  29. }
  30. /**
  31. * This method was generated by Apache iBATIS ibator.
  32. * This method corresponds to the database table xt_flzzd
  33. *
  34. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  35. */
  36. public int deleteByExample(XtFlzzdExample example) {
  37. int rows = getSqlMapClientTemplate().delete("xt_flzzd.ibatorgenerated_deleteByExample", example);
  38. return rows;
  39. }
  40. /**
  41. * This method was generated by Apache iBATIS ibator.
  42. * This method corresponds to the database table xt_flzzd
  43. *
  44. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  45. */
  46. public int deleteByPrimaryKey(Integer id) {
  47. XtFlzzd key = new XtFlzzd();
  48. key.setId(id);
  49. int rows = getSqlMapClientTemplate().delete("xt_flzzd.ibatorgenerated_deleteByPrimaryKey", key);
  50. return rows;
  51. }
  52. /**
  53. * This method was generated by Apache iBATIS ibator.
  54. * This method corresponds to the database table xt_flzzd
  55. *
  56. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  57. */
  58. public void insert(XtFlzzd record) {
  59. getSqlMapClientTemplate().insert("xt_flzzd.ibatorgenerated_insert", record);
  60. }
  61. /**
  62. * This method was generated by Apache iBATIS ibator.
  63. * This method corresponds to the database table xt_flzzd
  64. *
  65. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  66. */
  67. public void insertSelective(XtFlzzd record) {
  68. getSqlMapClientTemplate().insert("xt_flzzd.ibatorgenerated_insertSelective", record);
  69. }
  70. /**
  71. * This method was generated by Apache iBATIS ibator.
  72. * This method corresponds to the database table xt_flzzd
  73. *
  74. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  75. */
  76. @SuppressWarnings("unchecked")
  77. public List<XtFlzzd> selectByExample(XtFlzzdExample example) {
  78. List<XtFlzzd> list = getSqlMapClientTemplate().queryForList("xt_flzzd.ibatorgenerated_selectByExample", example);
  79. return list;
  80. }
  81. /**
  82. * This method was generated by Apache iBATIS ibator.
  83. * This method corresponds to the database table xt_flzzd
  84. *
  85. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  86. */
  87. public XtFlzzd selectByPrimaryKey(Integer id) {
  88. XtFlzzd key = new XtFlzzd();
  89. key.setId(id);
  90. XtFlzzd record = (XtFlzzd) getSqlMapClientTemplate().queryForObject("xt_flzzd.ibatorgenerated_selectByPrimaryKey", key);
  91. return record;
  92. }
  93. /**
  94. * This method was generated by Apache iBATIS ibator.
  95. * This method corresponds to the database table xt_flzzd
  96. *
  97. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  98. */
  99. public int updateByExampleSelective(XtFlzzd record, XtFlzzdExample example) {
  100. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  101. int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByExampleSelective", parms);
  102. return rows;
  103. }
  104. /**
  105. * This method was generated by Apache iBATIS ibator.
  106. * This method corresponds to the database table xt_flzzd
  107. *
  108. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  109. */
  110. public int updateByExample(XtFlzzd record, XtFlzzdExample example) {
  111. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  112. int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByExample", parms);
  113. return rows;
  114. }
  115. /**
  116. * This method was generated by Apache iBATIS ibator.
  117. * This method corresponds to the database table xt_flzzd
  118. *
  119. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  120. */
  121. public int updateByPrimaryKeySelective(XtFlzzd record) {
  122. int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByPrimaryKeySelective", record);
  123. return rows;
  124. }
  125. /**
  126. * This method was generated by Apache iBATIS ibator.
  127. * This method corresponds to the database table xt_flzzd
  128. *
  129. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  130. */
  131. public int updateByPrimaryKey(XtFlzzd record) {
  132. int rows = getSqlMapClientTemplate().update("xt_flzzd.ibatorgenerated_updateByPrimaryKey", record);
  133. return rows;
  134. }
  135. /**
  136. * This class was generated by Apache iBATIS ibator.
  137. * This class corresponds to the database table xt_flzzd
  138. *
  139. * @ibatorgenerated Thu Aug 07 14:29:58 CST 2014
  140. */
  141. private static class UpdateByExampleParms extends XtFlzzdExample {
  142. private Object record;
  143. public UpdateByExampleParms(Object record, XtFlzzdExample example) {
  144. super(example);
  145. this.record = record;
  146. }
  147. public Object getRecord() {
  148. return record;
  149. }
  150. }
  151. public int countXtFlzzdByParam(Map<String, Object> searchParam) {
  152. Integer count = (Integer) getSqlMapClientTemplate().queryForObject(XtSqlMapConstant.SQLMAP_COUNT_SELECT_FLZZD_BY_PARAM,searchParam);
  153. return count == null ? 0 : count;
  154. }
  155. public List<XtFlzzd> getXtFlzzdListByParam(Map<String, Object> searchParam) {
  156. List<XtFlzzd> list = getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_FLZZD_BY_PARAM,searchParam);
  157. return list;
  158. }
  159. }