- Type Parameters:
T
- The type of theRecord
instances managed by theLogger
.
- All Superinterfaces:
org.refcodes.mixin.Clearable
,LogDecorator
,Logger<T>
,QueryLogger<T>
- All Known Implementing Classes:
PartedTrimLogger
,TrimLoggerComposite
The
TrimLogger
extends the QueryLogger
with the functionality
to remove Record
instances previously being logged by providing the
according Criteria
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteLogs
(org.refcodes.criteria.Criteria aCriteria) Deletes loggedRecord
instances according to the providedCriteria
.Methods inherited from interface org.refcodes.mixin.Clearable
clear
Methods inherited from interface org.refcodes.logger.LogDecorator
printHead, printSeparator, printTail
-
Method Details
-
deleteLogs
void deleteLogs(org.refcodes.criteria.Criteria aCriteria) throws org.refcodes.criteria.CriteriaException.BadCriteriaException Deletes loggedRecord
instances according to the providedCriteria
.- Parameters:
aCriteria
- TheCriteria
to be applied when deleting previously loggedRecord
instances.- Throws:
org.refcodes.criteria.CriteriaException.BadCriteriaException
- thrown in case of problems related to someCriteria
.
-