An implementation that is capable of multi tenancy
Type Params | Return Type | Name and description |
---|---|---|
|
Datastore |
getDatastoreForTenantId(java.io.Serializable tenantId) Obtains the datastore for the given tenant id. |
|
MultiTenancyMode |
getMultiTenancyMode() @return The multi tenancy mode |
|
TenantResolver |
getTenantResolver() @return Obtain the tenant resolver |
<T1> |
T1 |
withNewSession(java.io.Serializable tenantId, groovy.lang.Closure<T1> callable) Execute a new session with the given tenantId |
Methods inherited from class | Name |
---|---|
interface ConnectionSourcesProvider |
getConnectionSources |
interface Datastore |
connect, getApplicationContext, getApplicationEventPublisher, getCurrentSession, getMappingContext, hasCurrentSession, isSchemaless, withSession |
interface ServiceRegistry |
getService, getServices |
Obtains the datastore for the given tenant id. In SINGLE mode this will be a unique datastore for each tenant. For MULTI mode a single datastore is used for all tenants
tenantId
- The tenant id
Execute a new session with the given tenantId
tenantId
- The tenant idcallable
- the callable
- the return type