RemoveProjectionFromStorage

public final class RemoveProjectionFromStorage<I, P extends Projection<I, S, B>, S extends EntityState, B extends ValidatingBuilder<S>> extends ProjectionMigration<I, P, S, B>

A migration operation that physically deletes the entity record from the storage.

Depending on the actual storage implementation, this operation may be irreversible, so it should be used in the client code with care.

See also

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public S apply(S s)

Inherited functions

Link copied to clipboard
public Function<T, V> andThen<V>(Function<? extends Object, ? extends V> after)
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 abstract Transaction<I, E, S, ? extends Object> startTransaction(E entity)
protected Transaction<I, P, S, ? extends Object> startTransaction(P entity)
Opens a transaction on an entity.
Link copied to clipboard
protected final Version version()
Returns the version of entity under migration.