@CompileStatic @Slf4j class Tenants extends java.lang.Object
Tenants implementation for RxGORM
| Constructor and description |
|---|
Tenants() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.io.Serializable |
currentId()
|
|
static java.io.Serializable |
currentId(java.lang.Class<? extends RxDatastoreClient> datastoreClass)
|
|
static void |
eachTenant(Closure callable)Execute the given closure for each tenant. |
|
static void |
eachTenant(java.lang.Class<? extends RxDatastoreClient> datastoreClass, Closure callable)Execute the given closure for each tenant. |
|
protected static void |
eachTenantInternal(RxDatastoreClient datastoreClient, Closure callable) |
<T> |
static T |
withCurrent(Closure<T> callable)Execute the given closure with the current tenant |
<T> |
static T |
withCurrent(java.lang.Class<? extends RxDatastoreClient> datastoreClass, Closure<T> callable)Execute the given closure with the current tenant |
<T> |
static T |
withId(java.io.Serializable tenantId, Closure<T> callable)Execute the given closure with given tenant id |
<T> |
static T |
withId(java.lang.Class<? extends RxDatastoreClient> datastoreClass, java.io.Serializable tenantId, Closure<T> callable)Execute the given closure with given tenant id |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Execute the given closure for each tenant.
callable - The closureExecute the given closure for each tenant.
callable - The closureExecute the given closure with the current tenant
callable - The closureExecute the given closure with the current tenant
datastoreClass - The datastore classcallable - The closureExecute the given closure with given tenant id
tenantId - The tenant idcallable - The closureExecute the given closure with given tenant id
tenantId - The tenant idcallable - The closure