readDomainAggregate

public Iterator<EntityStateWithVersion> readDomainAggregate(Query query)

Executes the given query for a domain aggregate state.

This read operation supports following types of queries:

  • queries for all instances of an aggregate type (which are not archived or deleted);
  • queries by the aggregate IDs;
  • queries for archived or/and deleted instance (combined with the other query types, if necessary).

Return

an Iterator over the query results packed as EntityStateWithVersion.

Parameters

query

a query for a domain aggregate

See also

io.spine.client.QueryFactory