SqlLike.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * Copyright (c) 2011-2014, hubin (jobob@qq.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.baomidou.mybatisplus.enums;
  17. /**
  18. * <p>
  19. * SQL like 枚举
  20. * </p>
  21. *
  22. * @author Caratacus
  23. * @Date 2016-12-4
  24. */
  25. public enum SqlLike {
  26. /**
  27. * LEFT
  28. */
  29. LEFT("left", "左边%"),
  30. /**
  31. * RIGHT
  32. */
  33. RIGHT("right", "右边%"),
  34. /**
  35. * CUSTOM
  36. */
  37. CUSTOM("custom", "定制"),
  38. /**
  39. * DEFAULT
  40. */
  41. DEFAULT("default", "两边%");
  42. /**
  43. * 主键
  44. */
  45. private final String type;
  46. /**
  47. * 描述
  48. */
  49. private final String desc;
  50. SqlLike(final String type, final String desc) {
  51. this.type = type;
  52. this.desc = desc;
  53. }
  54. public String getType() {
  55. return type;
  56. }
  57. public String getDesc() {
  58. return desc;
  59. }
  60. }