MessageConsumerExample.java 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. package com.goafanti.common.model;
  2. import java.util.ArrayList;
  3. import java.util.Date;
  4. import java.util.List;
  5. public class MessageConsumerExample {
  6. /**
  7. * This field was generated by MyBatis Generator. This field corresponds to the database table message_consumer
  8. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  9. */
  10. protected String orderByClause;
  11. /**
  12. * This field was generated by MyBatis Generator. This field corresponds to the database table message_consumer
  13. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  14. */
  15. protected boolean distinct;
  16. /**
  17. * This field was generated by MyBatis Generator. This field corresponds to the database table message_consumer
  18. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  19. */
  20. protected List<Criteria> oredCriteria;
  21. /**
  22. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  23. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  24. */
  25. public MessageConsumerExample() {
  26. oredCriteria = new ArrayList<Criteria>();
  27. }
  28. /**
  29. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  30. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  31. */
  32. public void setOrderByClause(String orderByClause) {
  33. this.orderByClause = orderByClause;
  34. }
  35. /**
  36. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  37. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  38. */
  39. public String getOrderByClause() {
  40. return orderByClause;
  41. }
  42. /**
  43. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  44. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  45. */
  46. public void setDistinct(boolean distinct) {
  47. this.distinct = distinct;
  48. }
  49. /**
  50. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  51. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  52. */
  53. public boolean isDistinct() {
  54. return distinct;
  55. }
  56. /**
  57. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  58. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  59. */
  60. public List<Criteria> getOredCriteria() {
  61. return oredCriteria;
  62. }
  63. /**
  64. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  65. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  66. */
  67. public void or(Criteria criteria) {
  68. oredCriteria.add(criteria);
  69. }
  70. /**
  71. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  72. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  73. */
  74. public Criteria or() {
  75. Criteria criteria = createCriteriaInternal();
  76. oredCriteria.add(criteria);
  77. return criteria;
  78. }
  79. /**
  80. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  81. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  82. */
  83. public Criteria createCriteria() {
  84. Criteria criteria = createCriteriaInternal();
  85. if (oredCriteria.size() == 0) {
  86. oredCriteria.add(criteria);
  87. }
  88. return criteria;
  89. }
  90. /**
  91. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  92. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  93. */
  94. protected Criteria createCriteriaInternal() {
  95. Criteria criteria = new Criteria();
  96. return criteria;
  97. }
  98. /**
  99. * This method was generated by MyBatis Generator. This method corresponds to the database table message_consumer
  100. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  101. */
  102. public void clear() {
  103. oredCriteria.clear();
  104. orderByClause = null;
  105. distinct = false;
  106. }
  107. /**
  108. * This class was generated by MyBatis Generator. This class corresponds to the database table message_consumer
  109. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  110. */
  111. protected abstract static class GeneratedCriteria {
  112. protected List<Criterion> criteria;
  113. protected GeneratedCriteria() {
  114. super();
  115. criteria = new ArrayList<Criterion>();
  116. }
  117. public boolean isValid() {
  118. return criteria.size() > 0;
  119. }
  120. public List<Criterion> getAllCriteria() {
  121. return criteria;
  122. }
  123. public List<Criterion> getCriteria() {
  124. return criteria;
  125. }
  126. protected void addCriterion(String condition) {
  127. if (condition == null) {
  128. throw new RuntimeException("Value for condition cannot be null");
  129. }
  130. criteria.add(new Criterion(condition));
  131. }
  132. protected void addCriterion(String condition, Object value, String property) {
  133. if (value == null) {
  134. throw new RuntimeException("Value for " + property + " cannot be null");
  135. }
  136. criteria.add(new Criterion(condition, value));
  137. }
  138. protected void addCriterion(String condition, Object value1, Object value2, String property) {
  139. if (value1 == null || value2 == null) {
  140. throw new RuntimeException("Between values for " + property + " cannot be null");
  141. }
  142. criteria.add(new Criterion(condition, value1, value2));
  143. }
  144. public Criteria andIdIsNull() {
  145. addCriterion("id is null");
  146. return (Criteria) this;
  147. }
  148. public Criteria andIdIsNotNull() {
  149. addCriterion("id is not null");
  150. return (Criteria) this;
  151. }
  152. public Criteria andIdEqualTo(String value) {
  153. addCriterion("id =", value, "id");
  154. return (Criteria) this;
  155. }
  156. public Criteria andIdNotEqualTo(String value) {
  157. addCriterion("id <>", value, "id");
  158. return (Criteria) this;
  159. }
  160. public Criteria andIdGreaterThan(String value) {
  161. addCriterion("id >", value, "id");
  162. return (Criteria) this;
  163. }
  164. public Criteria andIdGreaterThanOrEqualTo(String value) {
  165. addCriterion("id >=", value, "id");
  166. return (Criteria) this;
  167. }
  168. public Criteria andIdLessThan(String value) {
  169. addCriterion("id <", value, "id");
  170. return (Criteria) this;
  171. }
  172. public Criteria andIdLessThanOrEqualTo(String value) {
  173. addCriterion("id <=", value, "id");
  174. return (Criteria) this;
  175. }
  176. public Criteria andIdLike(String value) {
  177. addCriterion("id like", value, "id");
  178. return (Criteria) this;
  179. }
  180. public Criteria andIdNotLike(String value) {
  181. addCriterion("id not like", value, "id");
  182. return (Criteria) this;
  183. }
  184. public Criteria andIdIn(List<String> values) {
  185. addCriterion("id in", values, "id");
  186. return (Criteria) this;
  187. }
  188. public Criteria andIdNotIn(List<String> values) {
  189. addCriterion("id not in", values, "id");
  190. return (Criteria) this;
  191. }
  192. public Criteria andIdBetween(String value1, String value2) {
  193. addCriterion("id between", value1, value2, "id");
  194. return (Criteria) this;
  195. }
  196. public Criteria andIdNotBetween(String value1, String value2) {
  197. addCriterion("id not between", value1, value2, "id");
  198. return (Criteria) this;
  199. }
  200. public Criteria andCreateTimeIsNull() {
  201. addCriterion("create_time is null");
  202. return (Criteria) this;
  203. }
  204. public Criteria andCreateTimeIsNotNull() {
  205. addCriterion("create_time is not null");
  206. return (Criteria) this;
  207. }
  208. public Criteria andCreateTimeEqualTo(Date value) {
  209. addCriterion("create_time =", value, "createTime");
  210. return (Criteria) this;
  211. }
  212. public Criteria andCreateTimeNotEqualTo(Date value) {
  213. addCriterion("create_time <>", value, "createTime");
  214. return (Criteria) this;
  215. }
  216. public Criteria andCreateTimeGreaterThan(Date value) {
  217. addCriterion("create_time >", value, "createTime");
  218. return (Criteria) this;
  219. }
  220. public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
  221. addCriterion("create_time >=", value, "createTime");
  222. return (Criteria) this;
  223. }
  224. public Criteria andCreateTimeLessThan(Date value) {
  225. addCriterion("create_time <", value, "createTime");
  226. return (Criteria) this;
  227. }
  228. public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
  229. addCriterion("create_time <=", value, "createTime");
  230. return (Criteria) this;
  231. }
  232. public Criteria andCreateTimeIn(List<Date> values) {
  233. addCriterion("create_time in", values, "createTime");
  234. return (Criteria) this;
  235. }
  236. public Criteria andCreateTimeNotIn(List<Date> values) {
  237. addCriterion("create_time not in", values, "createTime");
  238. return (Criteria) this;
  239. }
  240. public Criteria andCreateTimeBetween(Date value1, Date value2) {
  241. addCriterion("create_time between", value1, value2, "createTime");
  242. return (Criteria) this;
  243. }
  244. public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
  245. addCriterion("create_time not between", value1, value2, "createTime");
  246. return (Criteria) this;
  247. }
  248. public Criteria andConsumerIdIsNull() {
  249. addCriterion("consumer_id is null");
  250. return (Criteria) this;
  251. }
  252. public Criteria andConsumerIdIsNotNull() {
  253. addCriterion("consumer_id is not null");
  254. return (Criteria) this;
  255. }
  256. public Criteria andConsumerIdEqualTo(String value) {
  257. addCriterion("consumer_id =", value, "consumerId");
  258. return (Criteria) this;
  259. }
  260. public Criteria andConsumerIdNotEqualTo(String value) {
  261. addCriterion("consumer_id <>", value, "consumerId");
  262. return (Criteria) this;
  263. }
  264. public Criteria andConsumerIdGreaterThan(String value) {
  265. addCriterion("consumer_id >", value, "consumerId");
  266. return (Criteria) this;
  267. }
  268. public Criteria andConsumerIdGreaterThanOrEqualTo(String value) {
  269. addCriterion("consumer_id >=", value, "consumerId");
  270. return (Criteria) this;
  271. }
  272. public Criteria andConsumerIdLessThan(String value) {
  273. addCriterion("consumer_id <", value, "consumerId");
  274. return (Criteria) this;
  275. }
  276. public Criteria andConsumerIdLessThanOrEqualTo(String value) {
  277. addCriterion("consumer_id <=", value, "consumerId");
  278. return (Criteria) this;
  279. }
  280. public Criteria andConsumerIdLike(String value) {
  281. addCriterion("consumer_id like", value, "consumerId");
  282. return (Criteria) this;
  283. }
  284. public Criteria andConsumerIdNotLike(String value) {
  285. addCriterion("consumer_id not like", value, "consumerId");
  286. return (Criteria) this;
  287. }
  288. public Criteria andConsumerIdIn(List<String> values) {
  289. addCriterion("consumer_id in", values, "consumerId");
  290. return (Criteria) this;
  291. }
  292. public Criteria andConsumerIdNotIn(List<String> values) {
  293. addCriterion("consumer_id not in", values, "consumerId");
  294. return (Criteria) this;
  295. }
  296. public Criteria andConsumerIdBetween(String value1, String value2) {
  297. addCriterion("consumer_id between", value1, value2, "consumerId");
  298. return (Criteria) this;
  299. }
  300. public Criteria andConsumerIdNotBetween(String value1, String value2) {
  301. addCriterion("consumer_id not between", value1, value2, "consumerId");
  302. return (Criteria) this;
  303. }
  304. public Criteria andMessageIdIsNull() {
  305. addCriterion("message_id is null");
  306. return (Criteria) this;
  307. }
  308. public Criteria andMessageIdIsNotNull() {
  309. addCriterion("message_id is not null");
  310. return (Criteria) this;
  311. }
  312. public Criteria andMessageIdEqualTo(String value) {
  313. addCriterion("message_id =", value, "messageId");
  314. return (Criteria) this;
  315. }
  316. public Criteria andMessageIdNotEqualTo(String value) {
  317. addCriterion("message_id <>", value, "messageId");
  318. return (Criteria) this;
  319. }
  320. public Criteria andMessageIdGreaterThan(String value) {
  321. addCriterion("message_id >", value, "messageId");
  322. return (Criteria) this;
  323. }
  324. public Criteria andMessageIdGreaterThanOrEqualTo(String value) {
  325. addCriterion("message_id >=", value, "messageId");
  326. return (Criteria) this;
  327. }
  328. public Criteria andMessageIdLessThan(String value) {
  329. addCriterion("message_id <", value, "messageId");
  330. return (Criteria) this;
  331. }
  332. public Criteria andMessageIdLessThanOrEqualTo(String value) {
  333. addCriterion("message_id <=", value, "messageId");
  334. return (Criteria) this;
  335. }
  336. public Criteria andMessageIdLike(String value) {
  337. addCriterion("message_id like", value, "messageId");
  338. return (Criteria) this;
  339. }
  340. public Criteria andMessageIdNotLike(String value) {
  341. addCriterion("message_id not like", value, "messageId");
  342. return (Criteria) this;
  343. }
  344. public Criteria andMessageIdIn(List<String> values) {
  345. addCriterion("message_id in", values, "messageId");
  346. return (Criteria) this;
  347. }
  348. public Criteria andMessageIdNotIn(List<String> values) {
  349. addCriterion("message_id not in", values, "messageId");
  350. return (Criteria) this;
  351. }
  352. public Criteria andMessageIdBetween(String value1, String value2) {
  353. addCriterion("message_id between", value1, value2, "messageId");
  354. return (Criteria) this;
  355. }
  356. public Criteria andMessageIdNotBetween(String value1, String value2) {
  357. addCriterion("message_id not between", value1, value2, "messageId");
  358. return (Criteria) this;
  359. }
  360. public Criteria andDeleteSignIsNull() {
  361. addCriterion("delete_sign is null");
  362. return (Criteria) this;
  363. }
  364. public Criteria andDeleteSignIsNotNull() {
  365. addCriterion("delete_sign is not null");
  366. return (Criteria) this;
  367. }
  368. public Criteria andDeleteSignEqualTo(Boolean value) {
  369. addCriterion("delete_sign =", value, "deleteSign");
  370. return (Criteria) this;
  371. }
  372. public Criteria andDeleteSignNotEqualTo(Boolean value) {
  373. addCriterion("delete_sign <>", value, "deleteSign");
  374. return (Criteria) this;
  375. }
  376. public Criteria andDeleteSignGreaterThan(Boolean value) {
  377. addCriterion("delete_sign >", value, "deleteSign");
  378. return (Criteria) this;
  379. }
  380. public Criteria andDeleteSignGreaterThanOrEqualTo(Boolean value) {
  381. addCriterion("delete_sign >=", value, "deleteSign");
  382. return (Criteria) this;
  383. }
  384. public Criteria andDeleteSignLessThan(Boolean value) {
  385. addCriterion("delete_sign <", value, "deleteSign");
  386. return (Criteria) this;
  387. }
  388. public Criteria andDeleteSignLessThanOrEqualTo(Boolean value) {
  389. addCriterion("delete_sign <=", value, "deleteSign");
  390. return (Criteria) this;
  391. }
  392. public Criteria andDeleteSignIn(List<Boolean> values) {
  393. addCriterion("delete_sign in", values, "deleteSign");
  394. return (Criteria) this;
  395. }
  396. public Criteria andDeleteSignNotIn(List<Boolean> values) {
  397. addCriterion("delete_sign not in", values, "deleteSign");
  398. return (Criteria) this;
  399. }
  400. public Criteria andDeleteSignBetween(Boolean value1, Boolean value2) {
  401. addCriterion("delete_sign between", value1, value2, "deleteSign");
  402. return (Criteria) this;
  403. }
  404. public Criteria andDeleteSignNotBetween(Boolean value1, Boolean value2) {
  405. addCriterion("delete_sign not between", value1, value2, "deleteSign");
  406. return (Criteria) this;
  407. }
  408. public Criteria andReadTimeIsNull() {
  409. addCriterion("read_time is null");
  410. return (Criteria) this;
  411. }
  412. public Criteria andReadTimeIsNotNull() {
  413. addCriterion("read_time is not null");
  414. return (Criteria) this;
  415. }
  416. public Criteria andReadTimeEqualTo(Date value) {
  417. addCriterion("read_time =", value, "readTime");
  418. return (Criteria) this;
  419. }
  420. public Criteria andReadTimeNotEqualTo(Date value) {
  421. addCriterion("read_time <>", value, "readTime");
  422. return (Criteria) this;
  423. }
  424. public Criteria andReadTimeGreaterThan(Date value) {
  425. addCriterion("read_time >", value, "readTime");
  426. return (Criteria) this;
  427. }
  428. public Criteria andReadTimeGreaterThanOrEqualTo(Date value) {
  429. addCriterion("read_time >=", value, "readTime");
  430. return (Criteria) this;
  431. }
  432. public Criteria andReadTimeLessThan(Date value) {
  433. addCriterion("read_time <", value, "readTime");
  434. return (Criteria) this;
  435. }
  436. public Criteria andReadTimeLessThanOrEqualTo(Date value) {
  437. addCriterion("read_time <=", value, "readTime");
  438. return (Criteria) this;
  439. }
  440. public Criteria andReadTimeIn(List<Date> values) {
  441. addCriterion("read_time in", values, "readTime");
  442. return (Criteria) this;
  443. }
  444. public Criteria andReadTimeNotIn(List<Date> values) {
  445. addCriterion("read_time not in", values, "readTime");
  446. return (Criteria) this;
  447. }
  448. public Criteria andReadTimeBetween(Date value1, Date value2) {
  449. addCriterion("read_time between", value1, value2, "readTime");
  450. return (Criteria) this;
  451. }
  452. public Criteria andReadTimeNotBetween(Date value1, Date value2) {
  453. addCriterion("read_time not between", value1, value2, "readTime");
  454. return (Criteria) this;
  455. }
  456. }
  457. /**
  458. * This class was generated by MyBatis Generator. This class corresponds to the database table message_consumer
  459. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  460. */
  461. public static class Criterion {
  462. private String condition;
  463. private Object value;
  464. private Object secondValue;
  465. private boolean noValue;
  466. private boolean singleValue;
  467. private boolean betweenValue;
  468. private boolean listValue;
  469. private String typeHandler;
  470. public String getCondition() {
  471. return condition;
  472. }
  473. public Object getValue() {
  474. return value;
  475. }
  476. public Object getSecondValue() {
  477. return secondValue;
  478. }
  479. public boolean isNoValue() {
  480. return noValue;
  481. }
  482. public boolean isSingleValue() {
  483. return singleValue;
  484. }
  485. public boolean isBetweenValue() {
  486. return betweenValue;
  487. }
  488. public boolean isListValue() {
  489. return listValue;
  490. }
  491. public String getTypeHandler() {
  492. return typeHandler;
  493. }
  494. protected Criterion(String condition) {
  495. super();
  496. this.condition = condition;
  497. this.typeHandler = null;
  498. this.noValue = true;
  499. }
  500. protected Criterion(String condition, Object value, String typeHandler) {
  501. super();
  502. this.condition = condition;
  503. this.value = value;
  504. this.typeHandler = typeHandler;
  505. if (value instanceof List<?>) {
  506. this.listValue = true;
  507. } else {
  508. this.singleValue = true;
  509. }
  510. }
  511. protected Criterion(String condition, Object value) {
  512. this(condition, value, null);
  513. }
  514. protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  515. super();
  516. this.condition = condition;
  517. this.value = value;
  518. this.secondValue = secondValue;
  519. this.typeHandler = typeHandler;
  520. this.betweenValue = true;
  521. }
  522. protected Criterion(String condition, Object value, Object secondValue) {
  523. this(condition, value, secondValue, null);
  524. }
  525. }
  526. /**
  527. * This class was generated by MyBatis Generator.
  528. * This class corresponds to the database table message_consumer
  529. *
  530. * @mbg.generated do_not_delete_during_merge Thu Dec 14 21:04:23 CST 2017
  531. */
  532. public static class Criteria extends GeneratedCriteria {
  533. protected Criteria() {
  534. super();
  535. }
  536. }
  537. }