public class TenantManager extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static ThreadLocal<Boolean> |
ignoreFlags |
private static TenantFactory |
tenantFactory |
| 限定符 | 构造器和说明 |
|---|---|
private |
TenantManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
static TenantFactory |
getTenantFactory() |
static Object[] |
getTenantIds()
已过时。
使用
getTenantIds(String) 代替。 |
static Object[] |
getTenantIds(String tableName) |
static void |
ignoreTenantCondition()
忽略 tenant 条件
|
static void |
restoreTenantCondition()
恢复 tenant 条件
|
static void |
setTenantFactory(TenantFactory tenantFactory) |
static void |
withoutTenantCondition(Runnable runnable)
忽略 tenant 条件
|
static <T> T |
withoutTenantCondition(Supplier<T> supplier)
忽略 tenant 条件
|
private static final ThreadLocal<Boolean> ignoreFlags
private static TenantFactory tenantFactory
private TenantManager()
public static TenantFactory getTenantFactory()
public static void setTenantFactory(TenantFactory tenantFactory)
public static <T> T withoutTenantCondition(Supplier<T> supplier)
public static void withoutTenantCondition(Runnable runnable)
public static void ignoreTenantCondition()
public static void restoreTenantCondition()
@Deprecated public static Object[] getTenantIds()
getTenantIds(String) 代替。public static Object[] getTenantIds(String tableName)
Copyright © 2025. All rights reserved.