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 Classes
    Modifier and Type
    Interface
    Description
    static 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 batch delete statement for multiple entities that are reachable via a given path from the aggregate root.
    static final class 
    Represents a batch delete statement for multiple entities that are aggregate roots.
    static final class 
    Represents a batch insert statement for a multiple entities that are not aggregate roots.
    static final class 
    Represents a batch insert statement for a multiple entities that are aggregate roots.
    static class 
    Represents a batch of DbAction that share a common value for a property of the action.
    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 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 
    A DbAction that stores the information of a single entity in the database.
    static interface 
    A DbAction not operation on the root of an aggregate but on its contained entities.
    static interface 
    A DbAction pertaining to the root on an aggregate.
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • getEntityType

      Class<T> getEntityType()