Returns a number of elements satisfying provided specification.
Returns a number of elements satisfying provided specification.
search predicate
future to number of domain objects which satisfy specification
Deleting an AggregateRoot aggregate
.
Deleting an AggregateRoot aggregate
.
aggregate root to delete
future for error checking
#delete(TraversableOnce)
Bulk delete.
Bulk delete.
Remote multiple AggregateRoot aggregates
.
aggregate roots to delete
future for error checking
Returns a domain object uniquely represented with its URI.
Returns a domain object uniquely represented with its URI. If object is not found, an exception will be thrown
domain object identity
future to found domain object
Repository#find(TraversableOnce)
Returns a Seq of domain objects uniquely represented with their URIs.
Returns a Seq of domain objects uniquely represented with their URIs. Only found objects will be returned (Seq will be empty if no objects are found).
sequence of unique identifiers
future to found domain objects
Insert a single AggregateRoot aggregate
.
Insert a single AggregateRoot aggregate
.
new aggregate root
future uri of created aggregate root
PersistableRepository#insert(TraversableOnce)
Bulk insert.
Bulk insert.
Create multiple new AggregateRoot aggregates
.
new aggregate roots
future uris of created aggregate roots
Apply local changes to the remote server.
Apply local changes to the remote server.
new aggregate roots
pairs for updating old aggregate to new state
aggregate roots which will be deleted
future uris of newly created aggregates
Returns a Seq of domain objects satisfying Specification[TSearchable] specification
with up to limit
results.
Returns a Seq of domain objects satisfying Specification[TSearchable] specification
with up to limit
results.
offset
can be used to skip initial results.
order
should be given as a Seq of pairs of
where first is a property name and second is whether it should be sorted
ascending over this property.
search predicate
maximum number of results
number of results to be skipped
custom ordering
future to domain objects which satisfy search predicate
Changing state of an aggregate root.
Changing state of an aggregate root.
aggregate root to update
future for error checking
PersistableRepository#update(TraversableOnce)
Bulk update.
Bulk update.
Changing state of multiple AggregateRoot aggregates
.
sequence of aggregate roots to update
future for error checking
Returns an instance of SearchBuilder search builder
for this repository.
Returns an instance of SearchBuilder search builder
for this repository.
Search builder is helper class with fluent API for building search.
utility class for building a search.
Helper method for counting domain objects.
Helper method for counting domain objects. Returns a number of elements satisfying provided specification.
search predicate
future to number of domain objects which satisfy specification
Helper method for searching domain objects.
Helper method for searching domain objects.
Returns a Seq of domain objects satisfying Specification[TSearchable] specification
with up to limit
results.
search predicate
maximum number of results
future to domain objects which satisfy search predicate
Helper method for searching domain objects.
Helper method for searching domain objects.
Returns a Seq of domain objects satisfying Specification[TSearchable] specification
search predicate
future to domain objects which satisfy search predicate
Service for doing CRUD operations. It can be used for applying changes on
AggregateRoot aggregate root
to the remote server.It should be used when Future is a preferred way of interacting with the remote server or bulk operations are required.