@groovy.transform.CompileStatic class TenantDelegatingGormOperations<D> extends java.lang.Object implements GormAllOperations<D>
Wraps each method call in the the given tenant id
Type | Name and description |
---|---|
GormAllOperations<D> |
allOperations |
Datastore |
datastore |
java.io.Serializable |
tenantId |
Constructor and description |
---|
TenantDelegatingGormOperations(Datastore datastore, java.io.Serializable tenantId, GormAllOperations<D> allOperations) |
Type Params | Return Type | Name and description |
---|---|---|
|
D |
attach(D instance) |
|
java.lang.Integer |
count() |
|
D |
create() |
|
BuildableCriteria |
createCriteria() |
|
void |
delete(D instance) |
|
void |
delete(D instance, java.util.Map params) |
|
void |
deleteAll(java.lang.Object[] objectsToDelete) |
|
void |
deleteAll(java.lang.Iterable objectsToDelete) |
|
void |
discard(D instance) |
|
GormAllOperations<D> |
eachTenant(groovy.lang.Closure callable) |
|
java.util.List |
executeQuery(java.lang.CharSequence query) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Map args) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Collection params) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.lang.Object[] params) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Map args) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Collection params) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.lang.Object[] params) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
boolean |
exists(java.io.Serializable id) |
|
D |
find(groovy.lang.Closure callable) |
|
D |
find(D example) |
|
D |
find(D example, java.util.Map args) |
|
D |
find(java.lang.CharSequence query) |
|
D |
find(java.lang.CharSequence query, java.util.Map params) |
|
D |
find(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
D |
find(java.lang.CharSequence query, java.util.Collection params) |
|
D |
find(java.lang.CharSequence query, java.lang.Object[] params) |
|
D |
find(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
java.util.List<D> |
findAll(groovy.lang.Closure callable) |
|
java.util.List<D> |
findAll(java.util.Map args, groovy.lang.Closure callable) |
|
java.util.List<D> |
findAll(java.util.Map params) |
|
java.util.List<D> |
findAll() |
|
java.util.List<D> |
findAll(D example) |
|
java.util.List<D> |
findAll(D example, java.util.Map args) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Map params) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Collection params) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.lang.Object[] params) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
java.util.List<D> |
findAllWhere(java.util.Map queryMap) |
|
java.util.List<D> |
findAllWhere(java.util.Map queryMap, java.util.Map args) |
|
D |
findOrCreateWhere(java.util.Map queryMap) |
|
D |
findOrSaveWhere(java.util.Map queryMap) |
|
D |
findWhere(java.util.Map queryMap) |
|
D |
findWhere(java.util.Map queryMap, java.util.Map args) |
|
D |
first() |
|
D |
first(java.lang.String propertyName) |
|
D |
first(java.util.Map queryParams) |
|
D |
get(java.io.Serializable id) |
|
java.util.List<D> |
getAll(java.lang.Iterable<java.io.Serializable> ids) |
|
java.util.List<D> |
getAll(java.io.Serializable[] ids) |
|
java.util.List<D> |
getAll() |
|
java.lang.Integer |
getCount() |
|
java.util.List<FinderMethod> |
getGormDynamicFinders() |
|
PersistentEntity |
getGormPersistentEntity() |
|
java.io.Serializable |
ident(D instance) |
|
D |
insert(D instance) |
|
D |
insert(D instance, java.util.Map params) |
|
boolean |
instanceOf(D instance, java.lang.Class cls) |
|
boolean |
isAttached(D instance) |
|
D |
last() |
|
D |
last(java.lang.String propertyName) |
|
D |
last(java.util.Map queryParams) |
|
java.util.List<D> |
list(java.util.Map params) |
|
java.util.List<D> |
list() |
|
D |
load(java.io.Serializable id) |
|
D |
lock(D instance) |
|
D |
lock(java.io.Serializable id) |
|
D |
merge(D instance, java.util.Map params) |
|
D |
merge(D d) |
|
java.lang.Object |
methodMissing(java.lang.String methodName, java.lang.Object arg) |
<T> |
T |
mutex(D instance, groovy.lang.Closure<T> callable) |
|
java.lang.Object |
propertyMissing(D instance, java.lang.String name) |
|
java.lang.Object |
propertyMissing(java.lang.String property) |
|
void |
propertyMissing(java.lang.String property, java.lang.Object value) |
|
D |
proxy(java.io.Serializable id) |
|
D |
read(java.io.Serializable id) |
|
D |
refresh(D instance) |
|
D |
save(D instance) |
|
D |
save(D instance, boolean validate) |
|
D |
save(D instance, java.util.Map params) |
|
java.util.List<java.io.Serializable> |
saveAll(java.lang.Object[] objectsToSave) |
|
java.util.List<java.io.Serializable> |
saveAll(java.lang.Iterable<?> objectsToSave) |
|
DetachedCriteria<D> |
where(groovy.lang.Closure callable) |
|
DetachedCriteria<D> |
whereAny(groovy.lang.Closure callable) |
|
DetachedCriteria<D> |
whereLazy(groovy.lang.Closure callable) |
<T> |
T |
withCriteria(groovy.lang.Closure<T> callable) |
<T> |
T |
withCriteria(java.util.Map builderArgs, groovy.lang.Closure callable) |
<T> |
T |
withDatastoreSession(groovy.lang.Closure<T> callable) |
<T> |
T |
withNewSession(groovy.lang.Closure<T> callable) |
<T> |
T |
withNewTransaction(groovy.lang.Closure<T> callable) |
<T> |
T |
withNewTransaction(java.util.Map transactionProperties, groovy.lang.Closure<T> callable) |
<T> |
T |
withSession(groovy.lang.Closure<T> callable) |
<T> |
T |
withStatelessSession(groovy.lang.Closure<T> callable) |
<T> |
T |
withTenant(java.io.Serializable tenantId, groovy.lang.Closure<T> callable) |
|
GormAllOperations<D> |
withTenant(java.io.Serializable tenantId) |
<T> |
T |
withTransaction(groovy.lang.Closure<T> callable) |
<T> |
T |
withTransaction(java.util.Map transactionProperties, groovy.lang.Closure<T> callable) |
<T> |
T |
withTransaction(org.springframework.transaction.TransactionDefinition definition, groovy.lang.Closure<T> callable) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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() |
Groovy Documentation