Tenants implementation for RxGORM
Type Params | Return Type | Name and description |
---|---|---|
|
static java.io.Serializable |
currentId() @return The current tenant id |
|
static java.io.Serializable |
currentId(java.lang.Class<? extends RxDatastoreClient> datastoreClass) @return The current tenant id for the given datastore type |
|
static void |
eachTenant(groovy.lang.Closure callable) Execute the given closure for each tenant. |
|
static void |
eachTenant(java.lang.Class<? extends RxDatastoreClient> datastoreClass, groovy.lang.Closure callable) Execute the given closure for each tenant. |
|
protected static void |
eachTenantInternal(RxDatastoreClient datastoreClient, groovy.lang.Closure callable) |
<T> |
static T |
withCurrent(groovy.lang.Closure<T> callable) Execute the given closure with the current tenant |
<T> |
static T |
withCurrent(java.lang.Class<? extends RxDatastoreClient> datastoreClass, groovy.lang.Closure<T> callable) Execute the given closure with the current tenant |
<T> |
static T |
withId(java.io.Serializable tenantId, groovy.lang.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, groovy.lang.Closure<T> callable) Execute the given closure with given tenant id |
Methods inherited from class | Name |
---|---|
class Tenants |
currentId, currentId, currentId, eachTenant, eachTenant, eachTenant, withCurrent, withCurrent, withId, withId, withId, withoutId |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
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