SjWeatherDataDAOImpl.java 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. package com.huimv.sj.dao;
  2. import com.huimv.sj.dataobject.SjWeatherData;
  3. import com.huimv.sj.dataobject.SjWeatherDataExample;
  4. import java.util.List;
  5. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  6. public class SjWeatherDataDAOImpl extends SqlMapClientDaoSupport implements SjWeatherDataDAO {
  7. /**
  8. * This method was generated by Apache iBATIS ibator.
  9. * This method corresponds to the database table sj_weatherdata
  10. *
  11. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  12. */
  13. public SjWeatherDataDAOImpl() {
  14. super();
  15. }
  16. /**
  17. * This method was generated by Apache iBATIS ibator.
  18. * This method corresponds to the database table sj_weatherdata
  19. *
  20. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  21. */
  22. public int countByExample(SjWeatherDataExample example) {
  23. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("sj_weatherdata.ibatorgenerated_countByExample", example);
  24. return count;
  25. }
  26. /**
  27. * This method was generated by Apache iBATIS ibator.
  28. * This method corresponds to the database table sj_weatherdata
  29. *
  30. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  31. */
  32. public int deleteByExample(SjWeatherDataExample example) {
  33. int rows = getSqlMapClientTemplate().delete("sj_weatherdata.ibatorgenerated_deleteByExample", example);
  34. return rows;
  35. }
  36. /**
  37. * This method was generated by Apache iBATIS ibator.
  38. * This method corresponds to the database table sj_weatherdata
  39. *
  40. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  41. */
  42. public int deleteByPrimaryKey(Integer id) {
  43. SjWeatherData key = new SjWeatherData();
  44. key.setId(id);
  45. int rows = getSqlMapClientTemplate().delete("sj_weatherdata.ibatorgenerated_deleteByPrimaryKey", key);
  46. return rows;
  47. }
  48. /**
  49. * This method was generated by Apache iBATIS ibator.
  50. * This method corresponds to the database table sj_weatherdata
  51. *
  52. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  53. */
  54. public void insert(SjWeatherData record) {
  55. getSqlMapClientTemplate().insert("sj_weatherdata.ibatorgenerated_insert", record);
  56. }
  57. /**
  58. * This method was generated by Apache iBATIS ibator.
  59. * This method corresponds to the database table sj_weatherdata
  60. *
  61. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  62. */
  63. public void insertSelective(SjWeatherData record) {
  64. getSqlMapClientTemplate().insert("sj_weatherdata.ibatorgenerated_insertSelective", record);
  65. }
  66. /**
  67. * This method was generated by Apache iBATIS ibator.
  68. * This method corresponds to the database table sj_weatherdata
  69. *
  70. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  71. */
  72. @SuppressWarnings("unchecked")
  73. public List<SjWeatherData> selectByExampleWithBLOBs(SjWeatherDataExample example) {
  74. List<SjWeatherData> list = getSqlMapClientTemplate().queryForList("sj_weatherdata.ibatorgenerated_selectByExampleWithBLOBs", example);
  75. return list;
  76. }
  77. /**
  78. * This method was generated by Apache iBATIS ibator.
  79. * This method corresponds to the database table sj_weatherdata
  80. *
  81. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  82. */
  83. @SuppressWarnings("unchecked")
  84. public List<SjWeatherData> selectByExampleWithoutBLOBs(SjWeatherDataExample example) {
  85. List<SjWeatherData> list = getSqlMapClientTemplate().queryForList("sj_weatherdata.ibatorgenerated_selectByExample", example);
  86. return list;
  87. }
  88. /**
  89. * This method was generated by Apache iBATIS ibator.
  90. * This method corresponds to the database table sj_weatherdata
  91. *
  92. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  93. */
  94. public SjWeatherData selectByPrimaryKey(Integer id) {
  95. SjWeatherData key = new SjWeatherData();
  96. key.setId(id);
  97. SjWeatherData record = (SjWeatherData) getSqlMapClientTemplate().queryForObject("sj_weatherdata.ibatorgenerated_selectByPrimaryKey", key);
  98. return record;
  99. }
  100. /**
  101. * This method was generated by Apache iBATIS ibator.
  102. * This method corresponds to the database table sj_weatherdata
  103. *
  104. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  105. */
  106. public int updateByExampleSelective(SjWeatherData record, SjWeatherDataExample example) {
  107. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  108. int rows = getSqlMapClientTemplate().update("sj_weatherdata.ibatorgenerated_updateByExampleSelective", parms);
  109. return rows;
  110. }
  111. /**
  112. * This method was generated by Apache iBATIS ibator.
  113. * This method corresponds to the database table sj_weatherdata
  114. *
  115. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  116. */
  117. public int updateByExampleWithBLOBs(SjWeatherData record, SjWeatherDataExample example) {
  118. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  119. int rows = getSqlMapClientTemplate().update("sj_weatherdata.ibatorgenerated_updateByExampleWithBLOBs", parms);
  120. return rows;
  121. }
  122. /**
  123. * This method was generated by Apache iBATIS ibator.
  124. * This method corresponds to the database table sj_weatherdata
  125. *
  126. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  127. */
  128. public int updateByExampleWithoutBLOBs(SjWeatherData record, SjWeatherDataExample example) {
  129. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  130. int rows = getSqlMapClientTemplate().update("sj_weatherdata.ibatorgenerated_updateByExample", parms);
  131. return rows;
  132. }
  133. /**
  134. * This method was generated by Apache iBATIS ibator.
  135. * This method corresponds to the database table sj_weatherdata
  136. *
  137. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  138. */
  139. public int updateByPrimaryKeySelective(SjWeatherData record) {
  140. int rows = getSqlMapClientTemplate().update("sj_weatherdata.ibatorgenerated_updateByPrimaryKeySelective", record);
  141. return rows;
  142. }
  143. /**
  144. * This method was generated by Apache iBATIS ibator.
  145. * This method corresponds to the database table sj_weatherdata
  146. *
  147. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  148. */
  149. public int updateByPrimaryKeyWithBLOBs(SjWeatherData record) {
  150. int rows = getSqlMapClientTemplate().update("sj_weatherdata.ibatorgenerated_updateByPrimaryKeyWithBLOBs", record);
  151. return rows;
  152. }
  153. /**
  154. * This method was generated by Apache iBATIS ibator.
  155. * This method corresponds to the database table sj_weatherdata
  156. *
  157. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  158. */
  159. public int updateByPrimaryKeyWithoutBLOBs(SjWeatherData record) {
  160. int rows = getSqlMapClientTemplate().update("sj_weatherdata.ibatorgenerated_updateByPrimaryKey", record);
  161. return rows;
  162. }
  163. /**
  164. * This class was generated by Apache iBATIS ibator.
  165. * This class corresponds to the database table sj_weatherdata
  166. *
  167. * @ibatorgenerated Thu Jan 22 15:06:33 CST 2015
  168. */
  169. private static class UpdateByExampleParms extends SjWeatherDataExample {
  170. private Object record;
  171. public UpdateByExampleParms(Object record, SjWeatherDataExample example) {
  172. super(example);
  173. this.record = record;
  174. }
  175. @SuppressWarnings("unused")
  176. public Object getRecord() {
  177. return record;
  178. }
  179. }
  180. }