@groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) class MultiTenancySettings extends java.lang.Object
Represents the multi tenancy settings
Modifiers | Name | Description |
---|---|---|
static enum |
MultiTenancySettings.MultiTenancyMode |
The multi-tenancy mode |
Type | Name and description |
---|---|
MultiTenancySettings.MultiTenancyMode |
mode The default multi tenancy mode |
TenantResolver |
tenantResolver |
TenantResolver |
tenantResolver |
java.lang.Class<? extends TenantResolver> |
tenantResolverClass The tenant resolver class |
Constructor and description |
---|
MultiTenancySettings
() |
Type Params | Return Type | Name and description |
---|---|---|
|
TenantResolver |
getTenantResolver()
|
|
static java.lang.String |
resolveConnectionForTenantId(MultiTenancySettings.MultiTenancyMode mode, java.io.Serializable tenantId) Resolves the connection to use for the given tenant id based on the current mode |
|
void |
setTenantResolver(TenantResolver tenantResolver) Sets the tenant resolver to use |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The default multi tenancy mode
The tenant resolver class
Resolves the connection to use for the given tenant id based on the current mode @return
mode
- The datastoretenantId
- The tenant idSets the tenant resolver to use
tenantResolver
- The tenant resolver to useGroovy Documentation