ProjectionMigration

public abstract class ProjectionMigration<I, P extends Projection<I, S, B>, S extends EntityState, B extends ValidatingBuilder<S>> extends Migration<I, E, S>

A Migration applied to a ProcessManager instance.

Inheritors

Constructors

Link copied to clipboard
public void ProjectionMigration()

Functions

Link copied to clipboard
protected Transaction<I, P, S, ? extends Object> startTransaction(P entity)
Opens a transaction on an entity.

Inherited functions

Link copied to clipboard
public Function<T, V> andThen<V>(Function<? extends Object, ? extends V> after)
Link copied to clipboard
public abstract R apply(T p)
Link copied to clipboard
public Function<V, R> compose<V>(Function<? extends Object, ? extends T> before)
Link copied to clipboard
protected final I id()
Returns the ID of an entity under migration.
Link copied to clipboard
public static Function<T, T> identity<T>()
Link copied to clipboard
protected final boolean isArchived()
Returns true if the entity under migration is archived.
Link copied to clipboard
protected final boolean isDeleted()
Returns true if the entity under migration is deleted.
Link copied to clipboard
protected final void markArchived()
Marks the entity under migration as archived.
Link copied to clipboard
protected final void markDeleted()
Marks the entity under migration as deleted.
Link copied to clipboard
protected final void removeFromStorage()
Configures the migration operation to delete the entity record from the storage.
Link copied to clipboard
protected final Version version()
Returns the version of entity under migration.