@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 exists supplied by a
Single . |
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
- <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.IllegalArgumentException
- if id
is nullrx.Observable<T> findOne(rx.Single<ID> id)
Single
.id
- must not be null.IllegalArgumentException
- if id
is nullrx.Single<Boolean> exists(ID id)
id
- must not be null.IllegalArgumentException
- if id
is nullrx.Single<Boolean> exists(rx.Single<ID> id)
Single
.id
- must not be null.IllegalArgumentException
- if id
is nullrx.Observable<T> findAll()
rx.Observable<T> findAll(Iterable<ID> ids)
ids
- rx.Observable<T> findAll(rx.Observable<ID> idStream)
idStream
- rx.Single<Long> count()
rx.Completable delete(ID id)
id
- must not be null.IllegalArgumentException
- in case the given id
is nullrx.Completable delete(T entity)
entity
- IllegalArgumentException
- in case the given entity is null.rx.Completable delete(Iterable<? extends T> entities)
entities
- IllegalArgumentException
- in case the given Iterable
is null.rx.Completable delete(rx.Observable<? extends T> entityStream)
entityStream
- IllegalArgumentException
- in case the given Publisher
is null.rx.Completable deleteAll()
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.