Package com.aquima.interactions.matching
Interface IMutableCaseBase
- All Superinterfaces:
ICaseBase
- All Known Implementing Classes:
CaseBase
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 Summary
Modifier and TypeMethodDescriptionvoid
deleteCase
(String caseName) Registers that an existing case in this casebase must be deleted.void
insertCase
(String caseName) Registers a new case for this casebase.boolean
Indicates if any changes are registered for this casebase.void
updateCase
(String caseName) Registers that the values of an existing case in this casebase must be updated.Methods inherited from interface com.aquima.interactions.matching.ICaseBase
getCase, getCases, getDefaultCaseThreshold, getDefaultKeyField, getDefaultMaxKeyResults, getDefaultMaxResults, getEntityName, getMatchDefinitions, getSubTypes, getSuperType
-
Method Details
-
insertCase
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
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
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.
-