TenantHandler.java 952 B

1234567891011121314151617181920212223242526272829303132333435
  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.tenancy;
  17. import net.sf.jsqlparser.expression.Expression;
  18. /**
  19. * <p>
  20. * 租户处理器
  21. * </p>
  22. *
  23. * @author hubin
  24. * @since 2017-08-31
  25. */
  26. public interface TenantHandler {
  27. Expression getTenantId();
  28. String getTenantIdColumn();
  29. boolean doTableFilter(String tableName);
  30. }