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.Delete
,DbAction.DeleteAll
,DbAction.DeleteAllRoot
,DbAction.DeleteRoot
,DbAction.Insert
,DbAction.InsertBatch
,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
Modifier and TypeInterfaceDescriptionstatic final class
Represents an acquire lock statement for all aggregate roots of a given type.static final class
Represents an acquire lock statement for a aggregate root when only the ID is known.static final class
Represents a delete statement for all entities that that a reachable via a give path from the aggregate root.static final class
Represents an delete statement for all entities that that a reachable via a give path from any aggregate root of a given type.static final class
Represents a delete statement for all aggregate roots of a given type.static final class
Represents a delete statement for a aggregate root when only the ID is known.static class
Represents an insert statement for a single entity that is not the root of an aggregate.static final class
Represents a batch insert statement for a multiple entities that are not aggregate roots.static class
Represents an insert statement for the root of an aggregate.static class
Represents an update statement for the aggregate root.static interface
An action depending on another action for providing additional information like the id of a parent entity.static interface
ADbAction
that stores the information of a single entity in the database.static interface
ADbAction
not operation on the root of an aggregate but on its contained entities.static interface
ADbAction
pertaining to the root on an aggregate. -
Method Summary
-
Method Details
-
getEntityType
-