Package it.tidalwave.datamanager.model
Interface DataManager.BackupFinder
- All Superinterfaces:
Cloneable,it.tidalwave.util.spi.ExtendedFinderSupport<Backup,,DataManager.BackupFinder> it.tidalwave.util.Finder<Backup>,Serializable
- Enclosing interface:
- DataManager
public static interface DataManager.BackupFinder
extends it.tidalwave.util.spi.ExtendedFinderSupport<Backup,DataManager.BackupFinder>
A
Finder for querying Backups.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSorting keys.Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
it.tidalwave.util.Finder.InMemorySortCriterion<U extends Object>, it.tidalwave.util.Finder.SortCriterion, it.tidalwave.util.Finder.SortDirection -
Method Summary
Modifier and TypeMethodDescriptionwithFileId(Optional<String> fileId) Specifies that returnedBackups contains the file with the given volume id.Specifies that returnedBackups with the given label.withVolumeId(Optional<String> volumeId) Specifies that returnedBackups with the given volume id.Methods inherited from interface it.tidalwave.util.spi.ExtendedFinderSupport
from, max, sort, sort, withContextMethods inherited from interface it.tidalwave.util.Finder
count, firstResult, forEach, from, from, iterator, max, max, ofType, optionalFirstResult, optionalResult, result, results, stream
-
Method Details
-
withLabel
Specifies that returnedBackups with the given label.- Parameters:
label- the label- Returns:
- the same finder in fluent style
-
withVolumeId
Specifies that returnedBackups with the given volume id.- Parameters:
volumeId- the volume id- Returns:
- the same finder in fluent style
-
withFileId
Specifies that returnedBackups contains the file with the given volume id.- Parameters:
fileId- the file id- Returns:
- the same finder in fluent style
-