MessageProducerExample.java 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. package com.goafanti.common.model;
  2. import java.util.ArrayList;
  3. import java.util.Date;
  4. import java.util.List;
  5. public class MessageProducerExample {
  6. /**
  7. * This field was generated by MyBatis Generator. This field corresponds to the database table message_producer
  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_producer
  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_producer
  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_producer
  23. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  24. */
  25. public MessageProducerExample() {
  26. oredCriteria = new ArrayList<Criteria>();
  27. }
  28. /**
  29. * This method was generated by MyBatis Generator. This method corresponds to the database table message_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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_producer
  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 andSendTimeIsNull() {
  361. addCriterion("send_time is null");
  362. return (Criteria) this;
  363. }
  364. public Criteria andSendTimeIsNotNull() {
  365. addCriterion("send_time is not null");
  366. return (Criteria) this;
  367. }
  368. public Criteria andSendTimeEqualTo(Date value) {
  369. addCriterion("send_time =", value, "sendTime");
  370. return (Criteria) this;
  371. }
  372. public Criteria andSendTimeNotEqualTo(Date value) {
  373. addCriterion("send_time <>", value, "sendTime");
  374. return (Criteria) this;
  375. }
  376. public Criteria andSendTimeGreaterThan(Date value) {
  377. addCriterion("send_time >", value, "sendTime");
  378. return (Criteria) this;
  379. }
  380. public Criteria andSendTimeGreaterThanOrEqualTo(Date value) {
  381. addCriterion("send_time >=", value, "sendTime");
  382. return (Criteria) this;
  383. }
  384. public Criteria andSendTimeLessThan(Date value) {
  385. addCriterion("send_time <", value, "sendTime");
  386. return (Criteria) this;
  387. }
  388. public Criteria andSendTimeLessThanOrEqualTo(Date value) {
  389. addCriterion("send_time <=", value, "sendTime");
  390. return (Criteria) this;
  391. }
  392. public Criteria andSendTimeIn(List<Date> values) {
  393. addCriterion("send_time in", values, "sendTime");
  394. return (Criteria) this;
  395. }
  396. public Criteria andSendTimeNotIn(List<Date> values) {
  397. addCriterion("send_time not in", values, "sendTime");
  398. return (Criteria) this;
  399. }
  400. public Criteria andSendTimeBetween(Date value1, Date value2) {
  401. addCriterion("send_time between", value1, value2, "sendTime");
  402. return (Criteria) this;
  403. }
  404. public Criteria andSendTimeNotBetween(Date value1, Date value2) {
  405. addCriterion("send_time not between", value1, value2, "sendTime");
  406. return (Criteria) this;
  407. }
  408. }
  409. /**
  410. * This class was generated by MyBatis Generator. This class corresponds to the database table message_producer
  411. * @mbg.generated Mon Dec 25 18:55:04 CST 2017
  412. */
  413. public static class Criterion {
  414. private String condition;
  415. private Object value;
  416. private Object secondValue;
  417. private boolean noValue;
  418. private boolean singleValue;
  419. private boolean betweenValue;
  420. private boolean listValue;
  421. private String typeHandler;
  422. public String getCondition() {
  423. return condition;
  424. }
  425. public Object getValue() {
  426. return value;
  427. }
  428. public Object getSecondValue() {
  429. return secondValue;
  430. }
  431. public boolean isNoValue() {
  432. return noValue;
  433. }
  434. public boolean isSingleValue() {
  435. return singleValue;
  436. }
  437. public boolean isBetweenValue() {
  438. return betweenValue;
  439. }
  440. public boolean isListValue() {
  441. return listValue;
  442. }
  443. public String getTypeHandler() {
  444. return typeHandler;
  445. }
  446. protected Criterion(String condition) {
  447. super();
  448. this.condition = condition;
  449. this.typeHandler = null;
  450. this.noValue = true;
  451. }
  452. protected Criterion(String condition, Object value, String typeHandler) {
  453. super();
  454. this.condition = condition;
  455. this.value = value;
  456. this.typeHandler = typeHandler;
  457. if (value instanceof List<?>) {
  458. this.listValue = true;
  459. } else {
  460. this.singleValue = true;
  461. }
  462. }
  463. protected Criterion(String condition, Object value) {
  464. this(condition, value, null);
  465. }
  466. protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  467. super();
  468. this.condition = condition;
  469. this.value = value;
  470. this.secondValue = secondValue;
  471. this.typeHandler = typeHandler;
  472. this.betweenValue = true;
  473. }
  474. protected Criterion(String condition, Object value, Object secondValue) {
  475. this(condition, value, secondValue, null);
  476. }
  477. }
  478. /**
  479. * This class was generated by MyBatis Generator.
  480. * This class corresponds to the database table message_producer
  481. *
  482. * @mbg.generated do_not_delete_during_merge Thu Dec 14 21:04:23 CST 2017
  483. */
  484. public static class Criteria extends GeneratedCriteria {
  485. protected Criteria() {
  486. super();
  487. }
  488. }
  489. }