@groovy.transform.CompileStatic class RxGormStaticApi<D> extends java.lang.Object implements RxGormAllOperations<D>
Bridge to the implementation of the static method level operations for RX GORM
Modifiers | Name | Description |
---|---|---|
class |
RxGormStaticApi.1 |
Modifiers | Name | Description |
---|---|---|
protected ConnectionSources |
connectionSources |
|
private RxDatastoreClient |
datastoreClient |
|
private PersistentEntity |
entity |
|
private java.util.List<FinderMethod> |
gormDynamicFinders |
|
protected MultiTenancyMode |
multiTenancyMode |
|
private java.lang.Class |
persistentClass |
Type | Name and description |
---|---|
RxDatastoreClient |
datastoreClient |
PersistentEntity |
entity |
java.util.List<FinderMethod> |
gormDynamicFinders |
java.lang.Class |
persistentClass |
Constructor and description |
---|
RxGormStaticApi
(PersistentEntity entity, RxDatastoreClient datastoreClient) |
Type Params | Return Type | Name and description |
---|---|---|
|
rx.Observable<java.lang.Number> |
count()
|
|
D |
create() Retrieve an instance by id |
|
CriteriaBuilder<D> |
createCriteria() Creates a criteria builder instance |
|
protected java.util.List<FinderMethod> |
createDynamicFinders() |
|
rx.Observable<java.lang.Boolean> |
delete(D instance) |
|
rx.Observable<java.lang.Boolean> |
delete(D instance, java.util.Map arguments) |
|
rx.Observable<java.lang.Number> |
deleteAll(D[] objects) |
|
rx.Observable<java.lang.Number> |
deleteAll(java.lang.Iterable objects) Batch deletes a number of objects in one go |
|
RxGormAllOperations<D> |
eachTenant(groovy.lang.Closure callable) |
|
rx.Observable<java.lang.Boolean> |
exists(java.io.Serializable id) |
|
rx.Observable<D> |
find(groovy.lang.Closure callable) Uses detached criteria to build a query and then execute it returning an observable |
|
rx.Observable<D> |
findAll(java.util.Map params) |
|
rx.Observable<D> |
findAll(groovy.lang.Closure callable) Uses detached criteria to build a query and then execute it returning an observable |
|
rx.Observable<D> |
findAllWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
rx.Observable<D> |
findAllWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
rx.Observable<D> |
findOrCreateWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
rx.Observable<D> |
findOrSaveWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
rx.Observable<D> |
findWhere(java.util.Map queryMap) Finds a single result matching all of the given conditions. |
|
rx.Observable<D> |
findWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
rx.Observable<D> |
first(java.lang.String property) Finds the first object sorted by propertyName |
|
rx.Observable<D> |
first(java.util.Map params) Finds the first object. |
|
rx.Observable<D> |
get(java.io.Serializable id, java.util.Map args) |
|
java.io.Serializable |
ident(D instance) |
|
rx.Observable<D> |
insert(D instance) |
|
rx.Observable<D> |
insert(D instance, java.util.Map arguments) |
|
rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable<D> objects, java.util.Map arguments) |
|
rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(D[] objects) |
|
rx.Observable<D> |
last(java.lang.String property) Finds the last object sorted by propertyName |
|
rx.Observable<D> |
last(java.util.Map params) Finds the last object. |
|
rx.Observable<java.util.List<D>> |
list(java.util.Map params) |
|
rx.Observable<D> |
methodMissing(java.lang.String methodName, java.lang.Object args) |
|
java.lang.Object |
propertyMissing(java.lang.String name) Property missing handler |
|
ObservableProxy<D> |
proxy(java.io.Serializable id) |
|
ObservableProxy<D> |
proxy(java.io.Serializable id, java.util.Map queryArgs) |
|
ObservableProxy<D> |
proxy(DetachedCriteria<D> query) |
|
ObservableProxy<D> |
proxy(DetachedCriteria<D> query, java.util.Map queryArgs) |
|
rx.Observable<D> |
save(D instance) |
|
rx.Observable<D> |
save(D instance, java.util.Map arguments) |
|
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 |
|
rx.Observable<java.util.List<java.io.Serializable>> |
saveAll(D[] objects) |
|
rx.Observable<D> |
staticMethodMissing(java.lang.String methodName, java.lang.Object arg) |
|
java.lang.Object |
staticPropertyMissing(java.lang.String property) |
|
DetachedCriteria<D> |
where(groovy.lang.Closure callable)
|
|
DetachedCriteria<D> |
whereAny(groovy.lang.Closure callable)
|
|
DetachedCriteria<D> |
whereLazy(groovy.lang.Closure callable)
|
|
rx.Observable |
withCriteria(groovy.lang.Closure callable) Creates a criteria builder instance |
|
rx.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) |
|
RxGormAllOperations<D> |
withTenant(java.io.Serializable tenantId) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Retrieve an instance by id
id
- The id of the instanceCreates a criteria builder instance
Batch deletes a number of objects in one go
objects
- The objects to deleteUses detached criteria to build a query and then execute it returning an observable
callable
- The callableUses detached criteria to build a query and then execute it returning an observable
callable
- The callableFinds 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 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 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.
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.
Property missing handler
name
- The name of the propertyBatch saves all of the given objects
objects
- The objects to save
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
Groovy Documentation