Class BaseCommand<T>

java.lang.Object
com.brodygaudel.bank.common.command.BaseCommand<T>
Type Parameters:
T - The type of the target aggregate identifier.
Direct Known Subclasses:
ActiveAccountCommand, CreateAccountCommand, CreateCustomerCommand, CreditAccountCommand, DebitAccountCommand, DeleteCustomerCommand, SuspendAccountCommand, UpdateCustomerCommand

public class BaseCommand<T> extends Object
Base class for representing commands with a target aggregate identifier.

This class provides a generic structure for commands with a target aggregate identifier. It includes a getter method for retrieving the identifier and a constructor to initialize the identifier during command creation.

  • Constructor Details

    • BaseCommand

      public BaseCommand(T id)
      Constructs a new instance of BaseCommand with the specified target aggregate identifier.
      Parameters:
      id - The target aggregate identifier for the command.