Interface ITransaction

All Superinterfaces:
ITransactionalAction, Serializable
All Known Implementing Classes:
Transaction

public interface ITransaction extends ITransactionalAction
This interface defines a single transaction.
Since:
6.5
Author:
O. Kerpershoek
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method will add the transaction to the stack.
    This method returns the unique ID of the transaction (never null).
    This method returns the name of the transaction, or null is none was defined.
    boolean
    This method returns a boolean indicating if this transaction stack does not contain any (sub)transactions.
    int
    This method returns the number of actions that are present in this transaction.

    Methods inherited from interface com.aquima.interactions.foundation.tx.ITransactionalAction

    duplicate, rollback
  • Method Details

    • getId

      GUID getId()
      This method returns the unique ID of the transaction (never null).
      Returns:
      The unique ID of the transaction.
    • getName

      String getName()
      This method returns the name of the transaction, or null is none was defined.
      Returns:
      the name of the transaction, or null is none was defined.
    • isEmpty

      boolean isEmpty()
      This method returns a boolean indicating if this transaction stack does not contain any (sub)transactions.
      Returns:
      a boolean indicating if this transaction stack does not contain any (sub)transactions.
    • size

      int size()
      This method returns the number of actions that are present in this transaction.
      Returns:
      the number of actions that are present in this transaction.
    • add

      void add(ITransactionalAction transaction)
      This method will add the transaction to the stack.
      Parameters:
      transaction - The transaction that should be added.