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 Backup
s.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Sorting 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 returnedBackup
s contains the file with the given volume id.Specifies that returnedBackup
s with the given label.withVolumeId
(Optional<String> volumeId) Specifies that returnedBackup
s with the given volume id.Methods inherited from interface it.tidalwave.util.spi.ExtendedFinderSupport
from, max, sort, sort, withContext
Methods 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 returnedBackup
s with the given label.- Parameters:
label
- the label- Returns:
- the same finder in fluent style
-
withVolumeId
Specifies that returnedBackup
s with the given volume id.- Parameters:
volumeId
- the volume id- Returns:
- the same finder in fluent style
-
withFileId
Specifies that returnedBackup
s contains the file with the given volume id.- Parameters:
fileId
- the file id- Returns:
- the same finder in fluent style
-