XtLsjlDAOImpl.java 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. package com.huimv.xt.dao;
  2. import com.huimv.xt.dataobject.XtLsjl;
  3. import com.huimv.xt.dataobject.XtLsjlExample;
  4. import java.util.List;
  5. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  6. public class XtLsjlDAOImpl extends SqlMapClientDaoSupport implements XtLsjlDAO {
  7. /**
  8. * This method was generated by Apache iBATIS ibator.
  9. * This method corresponds to the database table xt_lsjl
  10. *
  11. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  12. */
  13. public XtLsjlDAOImpl() {
  14. super();
  15. }
  16. /**
  17. * This method was generated by Apache iBATIS ibator.
  18. * This method corresponds to the database table xt_lsjl
  19. *
  20. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  21. */
  22. public int countByExample(XtLsjlExample example) {
  23. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_lsjl.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 xt_lsjl
  29. *
  30. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  31. */
  32. public int deleteByExample(XtLsjlExample example) {
  33. int rows = getSqlMapClientTemplate().delete("xt_lsjl.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 xt_lsjl
  39. *
  40. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  41. */
  42. public int deleteByPrimaryKey(Integer id) {
  43. XtLsjl key = new XtLsjl();
  44. key.setId(id);
  45. int rows = getSqlMapClientTemplate().delete("xt_lsjl.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 xt_lsjl
  51. *
  52. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  53. */
  54. public void insert(XtLsjl record) {
  55. getSqlMapClientTemplate().insert("xt_lsjl.ibatorgenerated_insert", record);
  56. }
  57. /**
  58. * This method was generated by Apache iBATIS ibator.
  59. * This method corresponds to the database table xt_lsjl
  60. *
  61. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  62. */
  63. public void insertSelective(XtLsjl record) {
  64. getSqlMapClientTemplate().insert("xt_lsjl.ibatorgenerated_insertSelective", record);
  65. }
  66. /**
  67. * This method was generated by Apache iBATIS ibator.
  68. * This method corresponds to the database table xt_lsjl
  69. *
  70. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  71. */
  72. @SuppressWarnings("unchecked")
  73. public List<XtLsjl> selectByExampleWithBLOBs(XtLsjlExample example) {
  74. List<XtLsjl> list = getSqlMapClientTemplate().queryForList("xt_lsjl.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 xt_lsjl
  80. *
  81. * @ibatorgenerated Tue Dec 09 09:03:40 CST 2014
  82. */
  83. @SuppressWarnings("unchecked")
  84. public List<XtLsjl> selectByExampleWithoutBLOBs(XtLsjlExample example) {
  85. List<XtLsjl> list = getSqlMapClientTemplate().queryForList("xt_lsjl.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 xt_lsjl
  91. *
  92. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  93. */
  94. public XtLsjl selectByPrimaryKey(Integer id) {
  95. XtLsjl key = new XtLsjl();
  96. key.setId(id);
  97. XtLsjl record = (XtLsjl) getSqlMapClientTemplate().queryForObject("xt_lsjl.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 xt_lsjl
  103. *
  104. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  105. */
  106. public int updateByExampleSelective(XtLsjl record, XtLsjlExample example) {
  107. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  108. int rows = getSqlMapClientTemplate().update("xt_lsjl.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 xt_lsjl
  114. *
  115. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  116. */
  117. public int updateByExampleWithBLOBs(XtLsjl record, XtLsjlExample example) {
  118. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  119. int rows = getSqlMapClientTemplate().update("xt_lsjl.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 xt_lsjl
  125. *
  126. * @ibatorgenerated Tue Dec 09 09:03:40 CST 2014
  127. */
  128. public int updateByExampleWithoutBLOBs(XtLsjl record, XtLsjlExample example) {
  129. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  130. int rows = getSqlMapClientTemplate().update("xt_lsjl.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 xt_lsjl
  136. *
  137. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  138. */
  139. public int updateByPrimaryKeySelective(XtLsjl record) {
  140. int rows = getSqlMapClientTemplate().update("xt_lsjl.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 xt_lsjl
  146. *
  147. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  148. */
  149. public int updateByPrimaryKeyWithBLOBs(XtLsjl record) {
  150. int rows = getSqlMapClientTemplate().update("xt_lsjl.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 xt_lsjl
  156. *
  157. * @ibatorgenerated Tue Dec 09 09:03:40 CST 2014
  158. */
  159. public int updateByPrimaryKeyWithoutBLOBs(XtLsjl record) {
  160. int rows = getSqlMapClientTemplate().update("xt_lsjl.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 xt_lsjl
  166. *
  167. * @ibatorgenerated Thu Aug 28 10:31:04 CST 2014
  168. */
  169. private static class UpdateByExampleParms extends XtLsjlExample {
  170. private Object record;
  171. public UpdateByExampleParms(Object record, XtLsjlExample example) {
  172. super(example);
  173. this.record = record;
  174. }
  175. public Object getRecord() {
  176. return record;
  177. }
  178. }
  179. }