XtYhjsExample.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. package com.huimv.xt.dataobject;
  2. import java.util.ArrayList;
  3. import java.util.HashMap;
  4. import java.util.List;
  5. import java.util.Map;
  6. public class XtYhjsExample {
  7. /**
  8. * This field was generated by Apache iBATIS ibator.
  9. * This field corresponds to the database table xt_yhjs
  10. *
  11. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  12. */
  13. protected String orderByClause;
  14. /**
  15. * This field was generated by Apache iBATIS ibator.
  16. * This field corresponds to the database table xt_yhjs
  17. *
  18. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  19. */
  20. protected List<Criteria> oredCriteria;
  21. /**
  22. * This field was generated by Apache iBATIS ibator.
  23. * This field corresponds to the database table xt_yhjs
  24. *
  25. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  26. */
  27. protected int start = -1;
  28. /**
  29. * This field was generated by Apache iBATIS ibator.
  30. * This field corresponds to the database table xt_yhjs
  31. *
  32. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  33. */
  34. protected int limit = -1;
  35. /**
  36. * This method was generated by Apache iBATIS ibator.
  37. * This method corresponds to the database table xt_yhjs
  38. *
  39. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  40. */
  41. public XtYhjsExample() {
  42. oredCriteria = new ArrayList<Criteria>();
  43. }
  44. /**
  45. * This method was generated by Apache iBATIS ibator.
  46. * This method corresponds to the database table xt_yhjs
  47. *
  48. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  49. */
  50. protected XtYhjsExample(XtYhjsExample example) {
  51. this.orderByClause = example.orderByClause;
  52. this.oredCriteria = example.oredCriteria;
  53. }
  54. /**
  55. * This method was generated by Apache iBATIS ibator.
  56. * This method corresponds to the database table xt_yhjs
  57. *
  58. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  59. */
  60. public void setOrderByClause(String orderByClause) {
  61. this.orderByClause = orderByClause;
  62. }
  63. /**
  64. * This method was generated by Apache iBATIS ibator.
  65. * This method corresponds to the database table xt_yhjs
  66. *
  67. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  68. */
  69. public String getOrderByClause() {
  70. return orderByClause;
  71. }
  72. /**
  73. * This method was generated by Apache iBATIS ibator.
  74. * This method corresponds to the database table xt_yhjs
  75. *
  76. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  77. */
  78. public List<Criteria> getOredCriteria() {
  79. return oredCriteria;
  80. }
  81. /**
  82. * This method was generated by Apache iBATIS ibator.
  83. * This method corresponds to the database table xt_yhjs
  84. *
  85. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  86. */
  87. public void or(Criteria criteria) {
  88. oredCriteria.add(criteria);
  89. }
  90. /**
  91. * This method was generated by Apache iBATIS ibator.
  92. * This method corresponds to the database table xt_yhjs
  93. *
  94. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  95. */
  96. public Criteria createCriteria() {
  97. Criteria criteria = createCriteriaInternal();
  98. if (oredCriteria.size() == 0) {
  99. oredCriteria.add(criteria);
  100. }
  101. return criteria;
  102. }
  103. /**
  104. * This method was generated by Apache iBATIS ibator.
  105. * This method corresponds to the database table xt_yhjs
  106. *
  107. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  108. */
  109. protected Criteria createCriteriaInternal() {
  110. Criteria criteria = new Criteria();
  111. return criteria;
  112. }
  113. /**
  114. * This method was generated by Apache iBATIS ibator.
  115. * This method corresponds to the database table xt_yhjs
  116. *
  117. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  118. */
  119. public void clear() {
  120. oredCriteria.clear();
  121. }
  122. /**
  123. * This method was generated by Apache iBATIS ibator.
  124. * This method corresponds to the database table xt_yhjs
  125. *
  126. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  127. */
  128. public void setStart(int start) {
  129. this.start=start;
  130. }
  131. /**
  132. * This method was generated by Apache iBATIS ibator.
  133. * This method corresponds to the database table xt_yhjs
  134. *
  135. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  136. */
  137. public int getStart() {
  138. return start;
  139. }
  140. /**
  141. * This method was generated by Apache iBATIS ibator.
  142. * This method corresponds to the database table xt_yhjs
  143. *
  144. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  145. */
  146. public void setLimit(int limit) {
  147. this.limit=limit;
  148. }
  149. /**
  150. * This method was generated by Apache iBATIS ibator.
  151. * This method corresponds to the database table xt_yhjs
  152. *
  153. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  154. */
  155. public int getLimit() {
  156. return limit;
  157. }
  158. /**
  159. * This class was generated by Apache iBATIS ibator.
  160. * This class corresponds to the database table xt_yhjs
  161. *
  162. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  163. */
  164. public static class Criteria {
  165. protected List<String> criteriaWithoutValue;
  166. protected List<Map<String, Object>> criteriaWithSingleValue;
  167. protected List<Map<String, Object>> criteriaWithListValue;
  168. protected List<Map<String, Object>> criteriaWithBetweenValue;
  169. protected Criteria() {
  170. super();
  171. criteriaWithoutValue = new ArrayList<String>();
  172. criteriaWithSingleValue = new ArrayList<Map<String, Object>>();
  173. criteriaWithListValue = new ArrayList<Map<String, Object>>();
  174. criteriaWithBetweenValue = new ArrayList<Map<String, Object>>();
  175. }
  176. public boolean isValid() {
  177. return criteriaWithoutValue.size() > 0
  178. || criteriaWithSingleValue.size() > 0
  179. || criteriaWithListValue.size() > 0
  180. || criteriaWithBetweenValue.size() > 0;
  181. }
  182. public List<String> getCriteriaWithoutValue() {
  183. return criteriaWithoutValue;
  184. }
  185. public List<Map<String, Object>> getCriteriaWithSingleValue() {
  186. return criteriaWithSingleValue;
  187. }
  188. public List<Map<String, Object>> getCriteriaWithListValue() {
  189. return criteriaWithListValue;
  190. }
  191. public List<Map<String, Object>> getCriteriaWithBetweenValue() {
  192. return criteriaWithBetweenValue;
  193. }
  194. protected void addCriterion(String condition) {
  195. if (condition == null) {
  196. throw new RuntimeException("Value for condition cannot be null");
  197. }
  198. criteriaWithoutValue.add(condition);
  199. }
  200. protected void addCriterion(String condition, Object value, String property) {
  201. if (value == null) {
  202. throw new RuntimeException("Value for " + property + " cannot be null");
  203. }
  204. Map<String, Object> map = new HashMap<String, Object>();
  205. map.put("condition", condition);
  206. map.put("value", value);
  207. criteriaWithSingleValue.add(map);
  208. }
  209. protected void addCriterion(String condition, List<? extends Object> values, String property) {
  210. if (values == null || values.size() == 0) {
  211. throw new RuntimeException("Value list for " + property + " cannot be null or empty");
  212. }
  213. Map<String, Object> map = new HashMap<String, Object>();
  214. map.put("condition", condition);
  215. map.put("values", values);
  216. criteriaWithListValue.add(map);
  217. }
  218. protected void addCriterion(String condition, Object value1, Object value2, String property) {
  219. if (value1 == null || value2 == null) {
  220. throw new RuntimeException("Between values for " + property + " cannot be null");
  221. }
  222. List<Object> list = new ArrayList<Object>();
  223. list.add(value1);
  224. list.add(value2);
  225. Map<String, Object> map = new HashMap<String, Object>();
  226. map.put("condition", condition);
  227. map.put("values", list);
  228. criteriaWithBetweenValue.add(map);
  229. }
  230. public Criteria andJsidIsNull() {
  231. addCriterion("jsid is null");
  232. return this;
  233. }
  234. public Criteria andJsidIsNotNull() {
  235. addCriterion("jsid is not null");
  236. return this;
  237. }
  238. public Criteria andJsidEqualTo(Integer value) {
  239. addCriterion("jsid =", value, "jsid");
  240. return this;
  241. }
  242. public Criteria andJsidNotEqualTo(Integer value) {
  243. addCriterion("jsid <>", value, "jsid");
  244. return this;
  245. }
  246. public Criteria andJsidGreaterThan(Integer value) {
  247. addCriterion("jsid >", value, "jsid");
  248. return this;
  249. }
  250. public Criteria andJsidGreaterThanOrEqualTo(Integer value) {
  251. addCriterion("jsid >=", value, "jsid");
  252. return this;
  253. }
  254. public Criteria andJsidLessThan(Integer value) {
  255. addCriterion("jsid <", value, "jsid");
  256. return this;
  257. }
  258. public Criteria andJsidLessThanOrEqualTo(Integer value) {
  259. addCriterion("jsid <=", value, "jsid");
  260. return this;
  261. }
  262. public Criteria andJsidIn(List<Integer> values) {
  263. addCriterion("jsid in", values, "jsid");
  264. return this;
  265. }
  266. public Criteria andJsidNotIn(List<Integer> values) {
  267. addCriterion("jsid not in", values, "jsid");
  268. return this;
  269. }
  270. public Criteria andJsidBetween(Integer value1, Integer value2) {
  271. addCriterion("jsid between", value1, value2, "jsid");
  272. return this;
  273. }
  274. public Criteria andJsidNotBetween(Integer value1, Integer value2) {
  275. addCriterion("jsid not between", value1, value2, "jsid");
  276. return this;
  277. }
  278. public Criteria andYhidIsNull() {
  279. addCriterion("yhid is null");
  280. return this;
  281. }
  282. public Criteria andYhidIsNotNull() {
  283. addCriterion("yhid is not null");
  284. return this;
  285. }
  286. public Criteria andYhidEqualTo(Integer value) {
  287. addCriterion("yhid =", value, "yhid");
  288. return this;
  289. }
  290. public Criteria andYhidNotEqualTo(Integer value) {
  291. addCriterion("yhid <>", value, "yhid");
  292. return this;
  293. }
  294. public Criteria andYhidGreaterThan(Integer value) {
  295. addCriterion("yhid >", value, "yhid");
  296. return this;
  297. }
  298. public Criteria andYhidGreaterThanOrEqualTo(Integer value) {
  299. addCriterion("yhid >=", value, "yhid");
  300. return this;
  301. }
  302. public Criteria andYhidLessThan(Integer value) {
  303. addCriterion("yhid <", value, "yhid");
  304. return this;
  305. }
  306. public Criteria andYhidLessThanOrEqualTo(Integer value) {
  307. addCriterion("yhid <=", value, "yhid");
  308. return this;
  309. }
  310. public Criteria andYhidIn(List<Integer> values) {
  311. addCriterion("yhid in", values, "yhid");
  312. return this;
  313. }
  314. public Criteria andYhidNotIn(List<Integer> values) {
  315. addCriterion("yhid not in", values, "yhid");
  316. return this;
  317. }
  318. public Criteria andYhidBetween(Integer value1, Integer value2) {
  319. addCriterion("yhid between", value1, value2, "yhid");
  320. return this;
  321. }
  322. public Criteria andYhidNotBetween(Integer value1, Integer value2) {
  323. addCriterion("yhid not between", value1, value2, "yhid");
  324. return this;
  325. }
  326. }
  327. }