A trait for domain classes that should be treated as multi tenant
Type Params | Return Type | Name and description |
---|---|---|
|
static RxGormAllOperations<D> |
eachTenant(groovy.lang.Closure callable) Execute the closure for each tenant |
<T> |
static T |
withTenant(java.io.Serializable tenantId, groovy.lang.Closure<T> callable) Execute the closure with the given tenantId |
|
static RxGormAllOperations<D> |
withTenant(java.io.Serializable tenantId) Return the GormAllOperations for the given tenant id |
Methods inherited from class | Name |
---|---|
trait RxEntity |
addTo, count, create, createCriteria, delete, deleteAll, deleteAll, exists, find, findAll, findAll, findAll, findAllWhere, findAllWhere, findOrCreateWhere, findOrSaveWhere, findWhere, findWhere, first, first, first, get, getAssociationId, getGormDynamicFinders, getGormPersistentEntity, ident, insert, insertAll, insertAll, isDirty, isDirty, last, last, last, list, list, proxy, proxy, removeFrom, save, save, saveAll, saveAll, staticMethodMissing, staticPropertyMissing, validate, validate, validate, where, whereAny, whereLazy, withConnection, withConnection, withCriteria, withCriteria |
Execute the closure for each tenant
callable
- The closureExecute the closure with the given tenantId
tenantId
- The tenant idcallable
- The closureReturn the GormAllOperations for the given tenant id
tenantId
- The tenant id