interface RxGormStaticOperations<D>
Static methods allowed by RxGORM
Type Params | Return Type | Name and description |
---|---|---|
|
abstract rx.Observable<java.lang.Number> |
count()
|
|
abstract D |
create()
|
|
abstract CriteriaBuilder<D> |
createCriteria() Creates a criteria builder instance |
|
abstract rx.Observable<java.lang.Number> |
deleteAll(D[] objects) Batch deletes a number of objects in one go |
|
abstract rx.Observable<java.lang.Number> |
deleteAll(java.lang.Iterable<D> objects) Batch deletes a number of objects in one go |
|
abstract RxGormAllOperations<D> |
eachTenant(groovy.lang.Closure callable) Execute the closure for each tenant |
|
abstract rx.Observable<java.lang.Boolean> |
exists(java.io.Serializable id) Check whether an entity exists for the given id |
|
abstract rx.Observable<D> |
find(groovy.lang.Closure callable) Uses detached criteria to build a query and then execute it returning an observable |
|
abstract rx.Observable<D> |
findAll() List all entities and return an observable |
|
abstract rx.Observable<D> |
findAll(java.util.Map args) List all entities and return an observable |
|
abstract rx.Observable<D> |
findAll(groovy.lang.Closure callable) Uses detached criteria to build a query and then execute it returning an observable |
|
abstract rx.Observable<D> |
findAllWhere(java.util.Map queryMap) Finds all results matching all of the given conditions. |
|
abstract rx.Observable<D> |
findAllWhere(java.util.Map queryMap, java.util.Map args) Finds all results matching all of the given conditions. |
|
abstract rx.Observable<D> |
findOrCreateWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
abstract rx.Observable<D> |
findOrSaveWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
abstract rx.Observable<D> |
findWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
abstract rx.Observable<D> |
findWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
abstract rx.Observable<D> |
first() Finds the first object using the natural sort order |
|
abstract rx.Observable<D> |
first(java.lang.String propertyName) Finds the first object sorted by propertyName |
|
abstract rx.Observable<D> |
first(java.util.Map queryParams) Finds the first object. |
|
abstract rx.Observable<D> |
get(java.io.Serializable id) Retrieve an instance by id |
|
abstract rx.Observable<D> |
get(java.io.Serializable id, java.util.Map queryArgs) Retrieve an instance by id for the given arguments |
|
abstract rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable<D> objects) Batch saves all of the given objects |
|
abstract rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable<D> objects, java.util.Map arguments) Batch saves all of the given objects |
|
abstract rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(D[] objects) Batch saves all of the given objects |
|
abstract rx.Observable<D> |
last() Finds the last object using the natural sort order |
|
abstract rx.Observable<D> |
last(java.lang.String propertyName) Finds the last object sorted by propertyName |
|
abstract rx.Observable<D> |
last(java.util.Map params) Finds the last object. |
|
abstract rx.Observable<java.util.List<D>> |
list() List all entities and return an observable |
|
abstract rx.Observable<java.util.List<D>> |
list(java.util.Map args) List all entities and return an observable |
|
abstract ObservableProxy<D> |
proxy(java.io.Serializable id) Retrieve a proxy to an instance by id |
|
abstract ObservableProxy<D> |
proxy(java.io.Serializable id, java.util.Map queryArgs) Retrieve a proxy to an for the given arguments |
|
abstract ObservableProxy<D> |
proxy(DetachedCriteria<D> query) Retrieve a proxy to an instance by id |
|
abstract ObservableProxy<D> |
proxy(DetachedCriteria<D> query, java.util.Map queryArgs) Retrieve a proxy to an for the given arguments |
|
abstract rx.Observable<java.util.List<java.io.Serializable>> |
saveAll(java.lang.Iterable<D> objects) Batch saves all of the given objects |
|
abstract rx.Observable<java.util.List<java.io.Serializable>> |
saveAll(java.lang.Iterable<D> objects, java.util.Map arguments) Batch saves all of the given objects |
|
abstract rx.Observable<java.util.List<java.io.Serializable>> |
saveAll(D[] objects) Batch saves all of the given objects |
|
abstract rx.Observable<D> |
staticMethodMissing(java.lang.String methodName, java.lang.Object arg) Handles dynamic finders |
|
abstract java.lang.Object |
staticPropertyMissing(java.lang.String property) Static property missing implementation |
|
abstract DetachedCriteria<D> |
where(groovy.lang.Closure callable)
|
|
abstract DetachedCriteria<D> |
whereAny(groovy.lang.Closure callable)
|
|
abstract DetachedCriteria<D> |
whereLazy(groovy.lang.Closure callable)
|
|
abstract rx.Observable |
withCriteria(groovy.lang.Closure callable) Creates a criteria builder instance |
|
abstract rx.Observable |
withCriteria(java.util.Map builderArgs, groovy.lang.Closure callable) Creates a criteria builder instance |
<T> |
abstract T |
withTenant(java.io.Serializable tenantId, groovy.lang.Closure<T> callable) Execute the closure with the given tenantId |
|
abstract RxGormAllOperations<D> |
withTenant(java.io.Serializable tenantId) Return the GormAllOperations for the given tenant id |
Creates a criteria builder instance
Batch deletes a number of objects in one go
objects
- The objects to deleteBatch deletes a number of objects in one go
objects
- The objects to deleteExecute the closure for each tenant
callable
- The closureCheck whether an entity exists for the given id @return
Uses detached criteria to build a query and then execute it returning an observable
callable
- The callableList all entities and return an observable
List all entities and return an observable
Uses detached criteria to build a query and then execute it returning an observable
callable
- The callableFinds all results matching all of the given conditions. Eg. Book.findAllWhere(author:"Stephen King", title:"The Stand")
queryMap
- The map of conditionsFinds all results matching all of the given conditions. Eg. Book.findAllWhere(author:"Stephen King", title:"The Stand")
queryMap
- The map of conditionsargs
- The Query argumentsFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand"). If a matching persistent entity is not found a new entity is created and returned.
queryMap
- The map of conditionsFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand"). If a matching persistent entity is not found a new entity is created, saved and returned.
queryMap
- The map of conditionsFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand")
queryMap
- The map of conditionsFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand")
queryMap
- The map of conditionsargs
- The Query argumentsFinds the first object using the natural sort order
Finds the first object sorted by propertyName
propertyName
- the name of the property to sort byFinds the first object. If queryParams includes 'sort', that will dictate the sort order, otherwise natural sort order will be used. queryParams may include any of the same parameters that might be passed to the list(Map) method. This method will ignore 'order' and 'max' as those are always 'asc' and 1, respectively.
Retrieve an instance by id
id
- The id of the instanceRetrieve an instance by id for the given arguments
id
- The idqueryArgs
- The query argumentsBatch saves all of the given objects
objects
- The objects to saveBatch saves all of the given objects
objects
- The objects to saveBatch saves all of the given objects
objects
- The objects to saveFinds the last object using the natural sort order
Finds the last object sorted by propertyName
propertyName
- the name of the property to sort byFinds the last object. If queryParams includes 'sort', that will dictate the sort order, otherwise natural sort order will be used. queryParams may include any of the same parameters that might be passed to the list(Map) method. This method will ignore 'order' and 'max' as those are always 'desc' and 1, respectively.
List all entities and return an observable
List all entities and return an observable
Retrieve a proxy to an instance by id
id
- The id of the instanceRetrieve a proxy to an for the given arguments
id
- The idqueryArgs
- The query argumentsRetrieve a proxy to an instance by id
query
- The queryRetrieve a proxy to an for the given arguments
query
- The queryqueryArgs
- The query argumentsBatch saves all of the given objects
objects
- The objects to saveBatch saves all of the given objects
objects
- The objects to saveBatch saves all of the given objects
objects
- The objects to saveHandles dynamic finders
methodName
- The method namearg
- The argument to the methodStatic property missing implementation
property
- The property
callable
- Callable closure containing detached criteria definition
callable
- Callable closure containing detached criteria definition
callable
- Callable closure containing detached criteria definitionCreates a criteria builder instance
Creates a criteria builder instance
Execute the closure with the given tenantId
tenantId
- The tenant idcallable
- The closureReturn the GormAllOperations for the given tenant id
tenantId
- The tenant id