类 TenantIdentifierResolver
java.lang.Object
plus.hiver.common.config.tenant.TenantIdentifierResolver
- 所有已实现的接口:
org.hibernate.context.spi.CurrentTenantIdentifierResolver<Long>,org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer
public class TenantIdentifierResolver
extends Object
implements org.hibernate.context.spi.CurrentTenantIdentifierResolver<Long>, org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer
租户标识解析器 - 用于多租户数据隔离
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
构造器详细资料
-
TenantIdentifierResolver
-
-
方法详细资料
-
resolveCurrentTenantIdentifier
- 指定者:
resolveCurrentTenantIdentifier在接口中org.hibernate.context.spi.CurrentTenantIdentifierResolver<Long>
-
validateExistingCurrentSessions
public boolean validateExistingCurrentSessions()- 指定者:
validateExistingCurrentSessions在接口中org.hibernate.context.spi.CurrentTenantIdentifierResolver<Long>
-
customize
- 指定者:
customize在接口中org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer
-
isSystemTenant
public boolean isSystemTenant()检查是否为系统租户(用于系统级操作) -
isDefaultTenant
public boolean isDefaultTenant()检查是否为默认租户 -
isTenantEnabled
public boolean isTenantEnabled()检查租户功能是否启用
-