Interface DbAction<T>
- Type Parameters:
T- the type of the entity that is affected by this action.
- All Known Subinterfaces:
DbAction.WithDependingOn<T>, DbAction.WithEntity<T>, DbAction.WithPropertyPath<T>, DbAction.WithRoot<T>
- All Known Implementing Classes:
DbAction.AcquireLockAllRoot, DbAction.AcquireLockRoot, DbAction.BatchDelete, DbAction.BatchDeleteRoot, DbAction.BatchInsert, DbAction.BatchInsertRoot, DbAction.BatchWithValue, DbAction.Delete, DbAction.DeleteAll, DbAction.DeleteAllRoot, DbAction.DeleteRoot, DbAction.Insert, DbAction.InsertRoot, DbAction.UpdateRoot
public interface DbAction<T>
An instance of this interface represents a (conceptual) single interaction with a database, e.g. a single update,
used as a step when synchronizing the state of an aggregate with the database.
- Author:
- Jens Schauder, Mark Paluch, Tyler Van Gorder, Myeonghyeon Lee, Chirag Tailor
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRepresents an acquire lock statement for all aggregate roots of a given type.static final classRepresents an acquire lock statement for a aggregate root when only the ID is known.static final classRepresents a batch delete statement for multiple entities that are reachable via a given path from the aggregate root.static final classRepresents a batch delete statement for multiple entities that are aggregate roots.static final classRepresents a batch insert statement for a multiple entities that are not aggregate roots.static final classRepresents a batch insert statement for a multiple entities that are aggregate roots.static classRepresents a batch ofDbActionthat share a common value for a property of the action.static final recordRepresents a delete statement for all entities that are reachable via a given path from the aggregate root.static final recordRepresents a delete statement for all entities that are reachable via a given path from any aggregate root of a given type.static final recordRepresents a delete statement for all aggregate roots of a given type.static final recordRepresents a delete statement for a aggregate root when only the ID is known.static final recordRepresents an insert statement for a single entity that is not the root of an aggregate.static classRepresents an insert statement for the root of an aggregate.static classRepresents an update statement for the aggregate root.static interfaceAn action depending on another action for providing additional information like the id of a parent entity.static interfaceADbActionthat stores the information of a single entity in the database.static interfaceADbActionnot operation on the root of an aggregate but on its contained entities.static interfaceADbActionpertaining to the root on an aggregate. -
Method Summary
-
Method Details
-
getEntityType
-