Repository
public abstract class Repository<I, E extends Entity<I, ? extends Object>> implements ContextAware, Closeable
Abstract base class for repositories.
Inheritors
Functions
Link copied to clipboard
Ensures that the storage is not null.
Link copied to clipboard
Obtains the
BoundedContext
to which this repository belongs.Link copied to clipboard
Creates the storage for this repository.
Link copied to clipboard
Link copied to clipboard
Returns the class of entities managed by this repository.
Link copied to clipboard
Obtains model class for the entities managed by this repository.
Link copied to clipboard
Obtains the TypeUrl for the state objects wrapped by entities managed by this repository.
Link copied to clipboard
Creates an EventFilter for this repository.
Link copied to clipboard
Verifies whether the repository is registered with a
BoundedContext
.Link copied to clipboard
Tells if the repository is registered in a
BoundedContext
.Link copied to clipboard
Tells if this repository should be registered as a type supplier with a
Stand
of the BoundedContext
to which this repository belongs.Link copied to clipboard
Obtains an instance of EntityLifecycle for the entity with the given ID.
Link copied to clipboard
The callback is invoked by a BoundedContext when adding the repository.
Link copied to clipboard
protected void onRoutingFailed(SignalEnvelope<? extends Object, ? extends Object, ? extends Object> envelope, Throwable cause)
A callback invoked when an exception is thrown from message routing.
Link copied to clipboard
Assigns a
BoundedContext
to this repository.Link copied to clipboard
Returns
true
if the storage is assigned, false
otherwise.Link copied to clipboard
Obtains a model class for the passed entity class value.