public interface StorageFileDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
StorageFileEntity |
getStorageFileByStorageNameAndFilePath(String storageName,
String filePath)
Retrieves storage file by storage name and file path.
|
StorageFileEntity |
getStorageFileByStorageUnitEntityAndFilePath(StorageUnitEntity storageUnitEntity,
String filePath)
Retrieves storage file by storage unit entity and file path.
|
org.apache.commons.collections4.MultiValuedMap<Integer,String> |
getStorageFilePathsByStorageUnitIds(List<Integer> storageUnitIds)
Retrieves a map of storage unit ids to their corresponding storage file paths.
|
void |
saveStorageFiles(List<StorageFileEntity> storageFileEntities)
Saves a list of storage file entities.
|
delete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshStorageFileEntity getStorageFileByStorageNameAndFilePath(String storageName, String filePath)
storageName - the storage name (case-insensitive)filePath - the file pathStorageFileEntity getStorageFileByStorageUnitEntityAndFilePath(StorageUnitEntity storageUnitEntity, String filePath)
storageUnitEntity - the storage unit entityfilePath - the file pathorg.apache.commons.collections4.MultiValuedMap<Integer,String> getStorageFilePathsByStorageUnitIds(List<Integer> storageUnitIds)
storageUnitIds - the list of storage unit identifiersvoid saveStorageFiles(List<StorageFileEntity> storageFileEntities)
storageFileEntities - the list of storage file entities to save.Copyright © 2021. All rights reserved.