T
- the type of the entity that is affected by this action.public interface DbAction<T>
Modifier and Type | Interface and Description |
---|---|
static class |
DbAction.Delete<T>
Represents a delete statement for all entities that that a reachable via a give path from the aggregate root.
|
static class |
DbAction.DeleteAll<T>
Represents an delete statement for all entities that that a reachable via a give path from any aggregate root of a
given type.
|
static class |
DbAction.DeleteAllRoot<T>
Represents a delete statement for all aggregate roots of a given type.
|
static class |
DbAction.DeleteRoot<T>
Represents a delete statement for a aggregate root when only the ID is known.
|
static class |
DbAction.Insert<T>
Represents an insert statement for a single entity that is not the root of an aggregate.
|
static class |
DbAction.InsertRoot<T>
Represents an insert statement for the root of an aggregate.
|
static class |
DbAction.Merge<T>
Represents a merge statement for a single entity that is not the root of an aggregate.
|
static class |
DbAction.Update<T>
Represents an update statement for a single entity that is not the root of an aggregate.
|
static class |
DbAction.UpdateRoot<T>
Represents an update statement for the aggregate root.
|
static interface |
DbAction.WithDependingOn<T>
An action depending on another action for providing additional information like the id of a parent entity.
|
static interface |
DbAction.WithEntity<T>
A
DbAction that stores the information of a single entity in the database. |
static interface |
DbAction.WithGeneratedId<T>
A
DbAction that may "update" its entity. |
static interface |
DbAction.WithPropertyPath<T>
A
DbAction not operation on the root of an aggregate but on its contained entities. |
static interface |
DbAction.WithVersion |
Modifier and Type | Method and Description |
---|---|
void |
doExecuteWith(Interpreter interpreter)
Executing this DbAction with the given
Interpreter without any exception handling. |
default void |
executeWith(Interpreter interpreter)
Executing this DbAction with the given
Interpreter . |
Class<T> |
getEntityType() |
default void executeWith(Interpreter interpreter)
Interpreter
.
The default implementation just performs exception handling and delegates to doExecuteWith(Interpreter)
.
interpreter
- the Interpreter
responsible for actually executing the DbAction
.Must not be
null
.void doExecuteWith(Interpreter interpreter)
Interpreter
without any exception handling.interpreter
- the Interpreter
responsible for actually executing the DbAction
.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.