@NoRepositoryBean public interface RxJava1CrudRepository<T,ID extends Serializable> extends Repository<T,ID>
Single
,
Observable
Modifier and Type | Method and Description |
---|---|
rx.Single<Long> |
count()
Returns the number of entities available.
|
rx.Completable |
delete(ID id)
Deletes the entity with the given id.
|
rx.Completable |
delete(Iterable<? extends T> entities)
Deletes the given entities.
|
rx.Completable |
delete(rx.Observable<? extends T> entityStream)
Deletes the given entities.
|
rx.Completable |
delete(T entity)
Deletes a given entity.
|
rx.Completable |
deleteAll()
Deletes all entities managed by the repository.
|
rx.Single<Boolean> |
exists(ID id)
Returns whether an entity with the given id exists.
|
rx.Single<Boolean> |
exists(rx.Single<ID> id)
Returns whether an entity with the given id, supplied by a
Single , exists. |
rx.Observable<T> |
findAll()
Returns all instances of the type.
|
rx.Observable<T> |
findAll(Iterable<ID> ids)
Returns all instances of the type with the given IDs.
|
rx.Observable<T> |
findAll(rx.Observable<ID> idStream)
Returns all instances of the type with the given IDs.
|
rx.Observable<T> |
findOne(ID id)
Retrieves an entity by its id.
|
rx.Observable<T> |
findOne(rx.Single<ID> id)
Retrieves an entity by its id supplied by a
Single . |
<S extends T> |
save(Iterable<S> entities)
Saves all given entities.
|
<S extends T> |
save(rx.Observable<S> entityStream)
Saves all given entities.
|
<S extends T> |
save(S entity)
Saves a given entity.
|
<S extends T> rx.Single<S> save(S entity)
entity
- must not be null.<S extends T> rx.Observable<S> save(Iterable<S> entities)
entities
- must not be null.IllegalArgumentException
- in case the given entity is null.<S extends T> rx.Observable<S> save(rx.Observable<S> entityStream)
entityStream
- must not be null.IllegalArgumentException
- in case the given Publisher
is null.rx.Observable<T> findOne(ID id)
id
- must not be null.Observable.empty()
if none found.IllegalArgumentException
- if id
is null.rx.Observable<T> findOne(rx.Single<ID> id)
Single
.id
- must not be null.Observable.empty()
if none found.IllegalArgumentException
- if id
is null.rx.Single<Boolean> exists(ID id)
id
- must not be null.IllegalArgumentException
- if id
is null.rx.Single<Boolean> exists(rx.Single<ID> id)
Single
, exists.id
- must not be null.IllegalArgumentException
- if id
is null.rx.Observable<T> findAll()
rx.Observable<T> findAll(Iterable<ID> ids)
ids
- must not be null.rx.Observable<T> findAll(rx.Observable<ID> idStream)
idStream
- must not be null.rx.Single<Long> count()
rx.Completable delete(ID id)
id
- must not be null.IllegalArgumentException
- in case the given id
is null.rx.Completable delete(T entity)
entity
- must not be null.IllegalArgumentException
- in case the given entity is null.rx.Completable delete(Iterable<? extends T> entities)
entities
- must not be null.IllegalArgumentException
- in case the given Iterable
is null.rx.Completable delete(rx.Observable<? extends T> entityStream)
entityStream
- must not be null.IllegalArgumentException
- in case the given Observable
is null.rx.Completable deleteAll()
Copyright © 2011-2016–2017 Pivotal Software, Inc.. All rights reserved.