UpdateProjectionColumns

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

A migration operation that does the update of interface-based columns of a Projection.

When applied to an entity, this operation will trigger the recalculation of entity storage fields according to the current implementation of EntityWithColumns-derived methods.

Such operation may be useful when the logic behind manually calculated columns changes as well as when adding the new columns to an entity.

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.