public class CouchbaseOrganizationsRepository extends Object implements OrganizationsRepository
| Constructor and Description |
|---|
CouchbaseOrganizationsRepository(com.couchbase.client.java.AsyncBucket bucket) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
deleteById(String id)
Removes an entity with I corresponding to the
I argument from this repository. |
reactor.core.publisher.Mono<Boolean> |
existByProperty(String propertyName,
Object propertyValue)
Determines if a entity with property corresponding to the
propertyName argument
and property value matching the propertyValue exists in this repository. |
reactor.core.publisher.Mono<Boolean> |
existsById(String id)
Determines if an entity corresponding to the
I argument exists in this repository. |
reactor.core.publisher.Mono<Boolean> |
existsByName(String name)
Returns whether an organization with the given name exists.
|
reactor.core.publisher.Flux<T> |
findAll()
Returns an
Iterable of all entities in this repository. |
reactor.core.publisher.Mono<T> |
findById(String id)
Attempts to return an entity corresponding to the
I argument in this repository. |
reactor.core.publisher.Mono<T> |
save(String id,
T entity)
Saves the
entity entity to this repository using the I argument. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteById, existByProperty, existsById, findAll, findById, savepublic CouchbaseOrganizationsRepository(com.couchbase.client.java.AsyncBucket bucket)
public reactor.core.publisher.Mono<Boolean> existsByName(String name)
OrganizationsRepositoryexistsByName in interface OrganizationsRepositoryname - organization name.true if an entity with the given id exists, false otherwise.public reactor.core.publisher.Mono<Boolean> existByProperty(String propertyName, Object propertyValue)
RepositorypropertyName argument
and property value matching the propertyValue exists in this repository.existByProperty in interface Repository<T extends Entity,String>propertyName - The entity property name search criteria.propertyValue - The entity property value search criteria.public reactor.core.publisher.Mono<T> findById(String id)
RepositoryI argument in this repository.findById in interface Repository<T extends Entity,String>id - The entity I to return.public reactor.core.publisher.Mono<Boolean> existsById(String id)
RepositoryI argument exists in this repository.existsById in interface Repository<T extends Entity,String>id - Search entity I criteria.public reactor.core.publisher.Mono<T> save(String id, T entity)
Repositoryentity entity to this repository using the I argument.save in interface Repository<T extends Entity,String>id - The entity I.entity - The entity to save.public reactor.core.publisher.Mono<Void> deleteById(String id)
RepositoryI argument from this repository.deleteById in interface Repository<T extends Entity,String>id - The I of the entity to be deleted.public reactor.core.publisher.Flux<T> findAll()
RepositoryIterable of all entities in this repository.findAll in interface Repository<T extends Entity,String>Iterable.Copyright © 2015–2019. All rights reserved.