UserInterestExample.java 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. package com.goafanti.common.model;
  2. import java.util.ArrayList;
  3. import java.util.Date;
  4. import java.util.List;
  5. public class UserInterestExample {
  6. /**
  7. * This field was generated by MyBatis Generator.
  8. * This field corresponds to the database table user_interest
  9. *
  10. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  11. */
  12. protected String orderByClause;
  13. /**
  14. * This field was generated by MyBatis Generator.
  15. * This field corresponds to the database table user_interest
  16. *
  17. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  18. */
  19. protected boolean distinct;
  20. /**
  21. * This field was generated by MyBatis Generator.
  22. * This field corresponds to the database table user_interest
  23. *
  24. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  25. */
  26. protected List<Criteria> oredCriteria;
  27. /**
  28. * This method was generated by MyBatis Generator.
  29. * This method corresponds to the database table user_interest
  30. *
  31. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  32. */
  33. public UserInterestExample() {
  34. oredCriteria = new ArrayList<Criteria>();
  35. }
  36. /**
  37. * This method was generated by MyBatis Generator.
  38. * This method corresponds to the database table user_interest
  39. *
  40. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  41. */
  42. public void setOrderByClause(String orderByClause) {
  43. this.orderByClause = orderByClause;
  44. }
  45. /**
  46. * This method was generated by MyBatis Generator.
  47. * This method corresponds to the database table user_interest
  48. *
  49. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  50. */
  51. public String getOrderByClause() {
  52. return orderByClause;
  53. }
  54. /**
  55. * This method was generated by MyBatis Generator.
  56. * This method corresponds to the database table user_interest
  57. *
  58. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  59. */
  60. public void setDistinct(boolean distinct) {
  61. this.distinct = distinct;
  62. }
  63. /**
  64. * This method was generated by MyBatis Generator.
  65. * This method corresponds to the database table user_interest
  66. *
  67. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  68. */
  69. public boolean isDistinct() {
  70. return distinct;
  71. }
  72. /**
  73. * This method was generated by MyBatis Generator.
  74. * This method corresponds to the database table user_interest
  75. *
  76. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  77. */
  78. public List<Criteria> getOredCriteria() {
  79. return oredCriteria;
  80. }
  81. /**
  82. * This method was generated by MyBatis Generator.
  83. * This method corresponds to the database table user_interest
  84. *
  85. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  86. */
  87. public void or(Criteria criteria) {
  88. oredCriteria.add(criteria);
  89. }
  90. /**
  91. * This method was generated by MyBatis Generator.
  92. * This method corresponds to the database table user_interest
  93. *
  94. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  95. */
  96. public Criteria or() {
  97. Criteria criteria = createCriteriaInternal();
  98. oredCriteria.add(criteria);
  99. return criteria;
  100. }
  101. /**
  102. * This method was generated by MyBatis Generator.
  103. * This method corresponds to the database table user_interest
  104. *
  105. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  106. */
  107. public Criteria createCriteria() {
  108. Criteria criteria = createCriteriaInternal();
  109. if (oredCriteria.size() == 0) {
  110. oredCriteria.add(criteria);
  111. }
  112. return criteria;
  113. }
  114. /**
  115. * This method was generated by MyBatis Generator.
  116. * This method corresponds to the database table user_interest
  117. *
  118. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  119. */
  120. protected Criteria createCriteriaInternal() {
  121. Criteria criteria = new Criteria();
  122. return criteria;
  123. }
  124. /**
  125. * This method was generated by MyBatis Generator.
  126. * This method corresponds to the database table user_interest
  127. *
  128. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  129. */
  130. public void clear() {
  131. oredCriteria.clear();
  132. orderByClause = null;
  133. distinct = false;
  134. }
  135. /**
  136. * This class was generated by MyBatis Generator.
  137. * This class corresponds to the database table user_interest
  138. *
  139. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  140. */
  141. protected abstract static class GeneratedCriteria {
  142. protected List<Criterion> criteria;
  143. protected GeneratedCriteria() {
  144. super();
  145. criteria = new ArrayList<Criterion>();
  146. }
  147. public boolean isValid() {
  148. return criteria.size() > 0;
  149. }
  150. public List<Criterion> getAllCriteria() {
  151. return criteria;
  152. }
  153. public List<Criterion> getCriteria() {
  154. return criteria;
  155. }
  156. protected void addCriterion(String condition) {
  157. if (condition == null) {
  158. throw new RuntimeException("Value for condition cannot be null");
  159. }
  160. criteria.add(new Criterion(condition));
  161. }
  162. protected void addCriterion(String condition, Object value, String property) {
  163. if (value == null) {
  164. throw new RuntimeException("Value for " + property + " cannot be null");
  165. }
  166. criteria.add(new Criterion(condition, value));
  167. }
  168. protected void addCriterion(String condition, Object value1, Object value2, String property) {
  169. if (value1 == null || value2 == null) {
  170. throw new RuntimeException("Between values for " + property + " cannot be null");
  171. }
  172. criteria.add(new Criterion(condition, value1, value2));
  173. }
  174. public Criteria andIdIsNull() {
  175. addCriterion("id is null");
  176. return (Criteria) this;
  177. }
  178. public Criteria andIdIsNotNull() {
  179. addCriterion("id is not null");
  180. return (Criteria) this;
  181. }
  182. public Criteria andIdEqualTo(String value) {
  183. addCriterion("id =", value, "id");
  184. return (Criteria) this;
  185. }
  186. public Criteria andIdNotEqualTo(String value) {
  187. addCriterion("id <>", value, "id");
  188. return (Criteria) this;
  189. }
  190. public Criteria andIdGreaterThan(String value) {
  191. addCriterion("id >", value, "id");
  192. return (Criteria) this;
  193. }
  194. public Criteria andIdGreaterThanOrEqualTo(String value) {
  195. addCriterion("id >=", value, "id");
  196. return (Criteria) this;
  197. }
  198. public Criteria andIdLessThan(String value) {
  199. addCriterion("id <", value, "id");
  200. return (Criteria) this;
  201. }
  202. public Criteria andIdLessThanOrEqualTo(String value) {
  203. addCriterion("id <=", value, "id");
  204. return (Criteria) this;
  205. }
  206. public Criteria andIdLike(String value) {
  207. addCriterion("id like", value, "id");
  208. return (Criteria) this;
  209. }
  210. public Criteria andIdNotLike(String value) {
  211. addCriterion("id not like", value, "id");
  212. return (Criteria) this;
  213. }
  214. public Criteria andIdIn(List<String> values) {
  215. addCriterion("id in", values, "id");
  216. return (Criteria) this;
  217. }
  218. public Criteria andIdNotIn(List<String> values) {
  219. addCriterion("id not in", values, "id");
  220. return (Criteria) this;
  221. }
  222. public Criteria andIdBetween(String value1, String value2) {
  223. addCriterion("id between", value1, value2, "id");
  224. return (Criteria) this;
  225. }
  226. public Criteria andIdNotBetween(String value1, String value2) {
  227. addCriterion("id not between", value1, value2, "id");
  228. return (Criteria) this;
  229. }
  230. public Criteria andFromUidIsNull() {
  231. addCriterion("from_uid is null");
  232. return (Criteria) this;
  233. }
  234. public Criteria andFromUidIsNotNull() {
  235. addCriterion("from_uid is not null");
  236. return (Criteria) this;
  237. }
  238. public Criteria andFromUidEqualTo(String value) {
  239. addCriterion("from_uid =", value, "fromUid");
  240. return (Criteria) this;
  241. }
  242. public Criteria andFromUidNotEqualTo(String value) {
  243. addCriterion("from_uid <>", value, "fromUid");
  244. return (Criteria) this;
  245. }
  246. public Criteria andFromUidGreaterThan(String value) {
  247. addCriterion("from_uid >", value, "fromUid");
  248. return (Criteria) this;
  249. }
  250. public Criteria andFromUidGreaterThanOrEqualTo(String value) {
  251. addCriterion("from_uid >=", value, "fromUid");
  252. return (Criteria) this;
  253. }
  254. public Criteria andFromUidLessThan(String value) {
  255. addCriterion("from_uid <", value, "fromUid");
  256. return (Criteria) this;
  257. }
  258. public Criteria andFromUidLessThanOrEqualTo(String value) {
  259. addCriterion("from_uid <=", value, "fromUid");
  260. return (Criteria) this;
  261. }
  262. public Criteria andFromUidLike(String value) {
  263. addCriterion("from_uid like", value, "fromUid");
  264. return (Criteria) this;
  265. }
  266. public Criteria andFromUidNotLike(String value) {
  267. addCriterion("from_uid not like", value, "fromUid");
  268. return (Criteria) this;
  269. }
  270. public Criteria andFromUidIn(List<String> values) {
  271. addCriterion("from_uid in", values, "fromUid");
  272. return (Criteria) this;
  273. }
  274. public Criteria andFromUidNotIn(List<String> values) {
  275. addCriterion("from_uid not in", values, "fromUid");
  276. return (Criteria) this;
  277. }
  278. public Criteria andFromUidBetween(String value1, String value2) {
  279. addCriterion("from_uid between", value1, value2, "fromUid");
  280. return (Criteria) this;
  281. }
  282. public Criteria andFromUidNotBetween(String value1, String value2) {
  283. addCriterion("from_uid not between", value1, value2, "fromUid");
  284. return (Criteria) this;
  285. }
  286. public Criteria andToUidIsNull() {
  287. addCriterion("to_uid is null");
  288. return (Criteria) this;
  289. }
  290. public Criteria andToUidIsNotNull() {
  291. addCriterion("to_uid is not null");
  292. return (Criteria) this;
  293. }
  294. public Criteria andToUidEqualTo(String value) {
  295. addCriterion("to_uid =", value, "toUid");
  296. return (Criteria) this;
  297. }
  298. public Criteria andToUidNotEqualTo(String value) {
  299. addCriterion("to_uid <>", value, "toUid");
  300. return (Criteria) this;
  301. }
  302. public Criteria andToUidGreaterThan(String value) {
  303. addCriterion("to_uid >", value, "toUid");
  304. return (Criteria) this;
  305. }
  306. public Criteria andToUidGreaterThanOrEqualTo(String value) {
  307. addCriterion("to_uid >=", value, "toUid");
  308. return (Criteria) this;
  309. }
  310. public Criteria andToUidLessThan(String value) {
  311. addCriterion("to_uid <", value, "toUid");
  312. return (Criteria) this;
  313. }
  314. public Criteria andToUidLessThanOrEqualTo(String value) {
  315. addCriterion("to_uid <=", value, "toUid");
  316. return (Criteria) this;
  317. }
  318. public Criteria andToUidLike(String value) {
  319. addCriterion("to_uid like", value, "toUid");
  320. return (Criteria) this;
  321. }
  322. public Criteria andToUidNotLike(String value) {
  323. addCriterion("to_uid not like", value, "toUid");
  324. return (Criteria) this;
  325. }
  326. public Criteria andToUidIn(List<String> values) {
  327. addCriterion("to_uid in", values, "toUid");
  328. return (Criteria) this;
  329. }
  330. public Criteria andToUidNotIn(List<String> values) {
  331. addCriterion("to_uid not in", values, "toUid");
  332. return (Criteria) this;
  333. }
  334. public Criteria andToUidBetween(String value1, String value2) {
  335. addCriterion("to_uid between", value1, value2, "toUid");
  336. return (Criteria) this;
  337. }
  338. public Criteria andToUidNotBetween(String value1, String value2) {
  339. addCriterion("to_uid not between", value1, value2, "toUid");
  340. return (Criteria) this;
  341. }
  342. public Criteria andCreateTimeIsNull() {
  343. addCriterion("create_time is null");
  344. return (Criteria) this;
  345. }
  346. public Criteria andCreateTimeIsNotNull() {
  347. addCriterion("create_time is not null");
  348. return (Criteria) this;
  349. }
  350. public Criteria andCreateTimeEqualTo(Date value) {
  351. addCriterion("create_time =", value, "createTime");
  352. return (Criteria) this;
  353. }
  354. public Criteria andCreateTimeNotEqualTo(Date value) {
  355. addCriterion("create_time <>", value, "createTime");
  356. return (Criteria) this;
  357. }
  358. public Criteria andCreateTimeGreaterThan(Date value) {
  359. addCriterion("create_time >", value, "createTime");
  360. return (Criteria) this;
  361. }
  362. public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
  363. addCriterion("create_time >=", value, "createTime");
  364. return (Criteria) this;
  365. }
  366. public Criteria andCreateTimeLessThan(Date value) {
  367. addCriterion("create_time <", value, "createTime");
  368. return (Criteria) this;
  369. }
  370. public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
  371. addCriterion("create_time <=", value, "createTime");
  372. return (Criteria) this;
  373. }
  374. public Criteria andCreateTimeIn(List<Date> values) {
  375. addCriterion("create_time in", values, "createTime");
  376. return (Criteria) this;
  377. }
  378. public Criteria andCreateTimeNotIn(List<Date> values) {
  379. addCriterion("create_time not in", values, "createTime");
  380. return (Criteria) this;
  381. }
  382. public Criteria andCreateTimeBetween(Date value1, Date value2) {
  383. addCriterion("create_time between", value1, value2, "createTime");
  384. return (Criteria) this;
  385. }
  386. public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
  387. addCriterion("create_time not between", value1, value2, "createTime");
  388. return (Criteria) this;
  389. }
  390. }
  391. /**
  392. * This class was generated by MyBatis Generator.
  393. * This class corresponds to the database table user_interest
  394. *
  395. * @mbg.generated do_not_delete_during_merge Fri Jun 15 09:33:14 CST 2018
  396. */
  397. public static class Criteria extends GeneratedCriteria {
  398. protected Criteria() {
  399. super();
  400. }
  401. }
  402. /**
  403. * This class was generated by MyBatis Generator.
  404. * This class corresponds to the database table user_interest
  405. *
  406. * @mbg.generated Fri Jun 15 09:33:14 CST 2018
  407. */
  408. public static class Criterion {
  409. private String condition;
  410. private Object value;
  411. private Object secondValue;
  412. private boolean noValue;
  413. private boolean singleValue;
  414. private boolean betweenValue;
  415. private boolean listValue;
  416. private String typeHandler;
  417. public String getCondition() {
  418. return condition;
  419. }
  420. public Object getValue() {
  421. return value;
  422. }
  423. public Object getSecondValue() {
  424. return secondValue;
  425. }
  426. public boolean isNoValue() {
  427. return noValue;
  428. }
  429. public boolean isSingleValue() {
  430. return singleValue;
  431. }
  432. public boolean isBetweenValue() {
  433. return betweenValue;
  434. }
  435. public boolean isListValue() {
  436. return listValue;
  437. }
  438. public String getTypeHandler() {
  439. return typeHandler;
  440. }
  441. protected Criterion(String condition) {
  442. super();
  443. this.condition = condition;
  444. this.typeHandler = null;
  445. this.noValue = true;
  446. }
  447. protected Criterion(String condition, Object value, String typeHandler) {
  448. super();
  449. this.condition = condition;
  450. this.value = value;
  451. this.typeHandler = typeHandler;
  452. if (value instanceof List<?>) {
  453. this.listValue = true;
  454. } else {
  455. this.singleValue = true;
  456. }
  457. }
  458. protected Criterion(String condition, Object value) {
  459. this(condition, value, null);
  460. }
  461. protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  462. super();
  463. this.condition = condition;
  464. this.value = value;
  465. this.secondValue = secondValue;
  466. this.typeHandler = typeHandler;
  467. this.betweenValue = true;
  468. }
  469. protected Criterion(String condition, Object value, Object secondValue) {
  470. this(condition, value, secondValue, null);
  471. }
  472. }
  473. }