SjGttzzzDAOImpl.java 5.9 KB

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