SqlInfo.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Copyright (c) 2011-2020, 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.plugins.parser;
  17. /**
  18. * <p>
  19. * Sql Info
  20. * </p>
  21. *
  22. * @author hubin
  23. * @Date 2017-06-20
  24. */
  25. public class SqlInfo {
  26. private String sql;// SQL 内容
  27. private boolean orderBy = true;// 是否排序
  28. public static SqlInfo newInstance() {
  29. return new SqlInfo();
  30. }
  31. public String getSql() {
  32. return sql;
  33. }
  34. public void setSql(String sql) {
  35. this.sql = sql;
  36. }
  37. public boolean isOrderBy() {
  38. return orderBy;
  39. }
  40. public void setOrderBy(boolean orderBy) {
  41. this.orderBy = orderBy;
  42. }
  43. }