Static methods allowed by RxGORM
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Observable<java.lang.Number> |
count() @return Counts the number of instances |
|
D |
create() @return A new instance of this RxEntity |
|
CriteriaBuilder<D> |
createCriteria() Creates a criteria builder instance |
|
java.util.Observable<java.lang.Number> |
deleteAll(D... objects) Batch deletes a number of objects in one go |
|
java.util.Observable<java.lang.Number> |
deleteAll(java.lang.Iterable<D> objects) Batch deletes a number of objects in one go |
|
RxGormAllOperations<D> |
eachTenant(groovy.lang.Closure callable) Execute the closure for each tenant |
|
java.util.Observable<java.lang.Boolean> |
exists(java.io.Serializable id) Check whether an entity exists for the given id |
|
java.util.Observable<D> |
find(groovy.lang.Closure callable) Uses detached criteria to build a query and then execute it returning an observable |
|
java.util.Observable<D> |
findAll() List all entities and return an observable |
|
java.util.Observable<D> |
findAll(java.util.Map args) List all entities and return an observable |
|
java.util.Observable<D> |
findAll(groovy.lang.Closure callable) Uses detached criteria to build a query and then execute it returning an observable |
|
java.util.Observable<D> |
findAllWhere(java.util.Map queryMap) Finds all results matching all of the given conditions. |
|
java.util.Observable<D> |
findAllWhere(java.util.Map queryMap, java.util.Map args) Finds all results matching all of the given conditions. |
|
java.util.Observable<D> |
findOrCreateWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
java.util.Observable<D> |
findOrSaveWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
java.util.Observable<D> |
findWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
java.util.Observable<D> |
findWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
java.util.Observable<D> |
first() Finds the first object using the natural sort order |
|
java.util.Observable<D> |
first(java.lang.String propertyName) Finds the first object sorted by propertyName |
|
java.util.Observable<D> |
first(java.util.Map queryParams) Finds the first object. |
|
java.util.Observable<D> |
get(java.io.Serializable id) Retrieve an instance by id |
|
java.util.Observable<D> |
get(java.io.Serializable id, java.util.Map queryArgs) Retrieve an instance by id for the given arguments |
|
java.util.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable<D> objects) Batch saves all of the given objects |
|
java.util.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable<D> objects, java.util.Map arguments) Batch saves all of the given objects |
|
java.util.Observable<java.util.List<java.io.Serializable>> |
insertAll(D... objects) Batch saves all of the given objects |
|
java.util.Observable<D> |
last() Finds the last object using the natural sort order |
|
java.util.Observable<D> |
last(java.lang.String propertyName) Finds the last object sorted by propertyName |
|
java.util.Observable<D> |
last(java.util.Map params) Finds the last object. |
|
java.util.Observable<java.util.List<D>> |
list() List all entities and return an observable |
|
java.util.Observable<java.util.List<D>> |
list(java.util.Map args) List all entities and return an observable |
|
ObservableProxy<D> |
proxy(java.io.Serializable id) Retrieve a proxy to an instance by id |
|
ObservableProxy<D> |
proxy(java.io.Serializable id, java.util.Map queryArgs) Retrieve a proxy to an for the given arguments |
|
ObservableProxy<D> |
proxy(DetachedCriteria<D> query) Retrieve a proxy to an instance by id |
|
ObservableProxy<D> |
proxy(DetachedCriteria<D> query, java.util.Map queryArgs) Retrieve a proxy to an for the given arguments |
|
java.util.Observable<java.util.List<java.io.Serializable>> |
saveAll(java.lang.Iterable<D> objects) Batch saves all of the given objects |
|
java.util.Observable<java.util.List<java.io.Serializable>> |
saveAll(java.lang.Iterable<D> objects, java.util.Map arguments) Batch saves all of the given objects |
|
java.util.Observable<java.util.List<java.io.Serializable>> |
saveAll(D... objects) Batch saves all of the given objects |
|
java.util.Observable<D> |
staticMethodMissing(java.lang.String methodName, java.lang.Object arg) Handles dynamic finders |
|
java.lang.Object |
staticPropertyMissing(java.lang.String property) Static property missing implementation |
|
DetachedCriteria<D> |
where(groovy.lang.Closure callable) @param callable Callable closure containing detached criteria definition |
|
DetachedCriteria<D> |
whereAny(groovy.lang.Closure callable) @param callable Callable closure containing detached criteria definition |
|
DetachedCriteria<D> |
whereLazy(groovy.lang.Closure callable) @param callable Callable closure containing detached criteria definition |
|
java.util.Observable |
withCriteria(groovy.lang.Closure callable) Creates a criteria builder instance |
|
java.util.Observable |
withCriteria(java.util.Map builderArgs, groovy.lang.Closure callable) Creates a criteria builder instance |
<T> |
T |
withTenant(java.io.Serializable tenantId, groovy.lang.Closure<T> callable) Execute the closure with the given tenantId |
|
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
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