CountryCodeExample.java 18 KB

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