- Type Parameters:
T- The type of theRecordinstances 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 TypeMethodDescriptionvoiddeleteLogs(org.refcodes.criteria.Criteria aCriteria) Deletes loggedRecordinstances according to the providedCriteria.Methods inherited from interface org.refcodes.mixin.Clearable
clearMethods inherited from interface org.refcodes.logger.LogDecorator
printHead, printSeparator, printTail
-
Method Details
-
deleteLogs
void deleteLogs(org.refcodes.criteria.Criteria aCriteria) throws org.refcodes.criteria.BadCriteriaException Deletes loggedRecordinstances according to the providedCriteria.- Parameters:
aCriteria- TheCriteriato be applied when deleting previously loggedRecordinstances.- Throws:
org.refcodes.criteria.BadCriteriaException- thrown in case of problems related to someCriteria.
-