Interface IMutableCaseBase

All Superinterfaces:
ICaseBase
All Known Implementing Classes:
CaseBase

public interface IMutableCaseBase extends ICaseBase
Interface for a mutable casebase. In a mutable casebase cases can be added, updated and deleted at runtime. After all changes are registered, the method IMatchEngine.applyCaseBaseUpdates() must be called to apply the changes to the casebases.
Since:
7.1
Author:
M. Sloof
  • Method Details

    • insertCase

      void insertCase(String caseName)
      Registers a new case for this casebase.
      Parameters:
      caseName - The case name.
      Throws:
      CaseUpdateException - This exception with error code DUPLICATE_CASE is thrown if ths casebase already contains a case with the given name.
    • updateCase

      void updateCase(String caseName)
      Registers that the values of an existing case in this casebase must be updated.
      Parameters:
      caseName - The case name.
      Throws:
      CaseUpdateException - This exception with error code UNKNOWN_CASE is thrown if the given case name does not exist in the casebase.
    • deleteCase

      void deleteCase(String caseName)
      Registers that an existing case in this casebase must be deleted.
      Parameters:
      caseName - The case name.
      Throws:
      CaseUpdateException - This exception with error code UNKNOWN_CASE is thrown if the given case name does not exist in the casebase.
    • isChanged

      boolean isChanged()
      Indicates if any changes are registered for this casebase.
      Returns:
      true if changes to the case data are registered but not yet applied.