public class RepoFileMetaDataDAODbFacadeImpl extends BaseDAODbFacade implements RepoFileMetaDataDAO
StorageDomainDAODbFacadeImpl
provides an implementation of StorageDomainDAO
based on code from
DbFacade
. Responsible for managing the repository files meta data via the
persistent layer.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
RepoFileMetaDataDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addRepoFileMap(RepoFileMetaData map)
Add repository file to cache table.
|
List<RepoFileMetaData> |
getAllRepoFilesForAllStoragePools(StorageDomainType storageDomainType,
StoragePoolStatus storagePoolStatus,
StorageDomainStatus storageDomainStatus,
VDSStatus vdsStatus)
Returns list of the oldest last refreshed repository files,
for each storage pool, storage domain and file type in all System,
which meets the same storage domain status, type and SPM status.
|
List<RepoFileMetaData> |
getRepoListForStorageDomain(Guid storageDomainId,
FileTypeExtension fileType)
Returns a list of repository files with specific file extension from storage domain id.
If no repository found, will return an empty list. |
List<RepoFileMetaData> |
getRepoListForStorageDomainAndStoragePool(Guid storagePoolId,
Guid storageDomainId,
FileTypeExtension fileType)
Returns a list of repository files with specific file extension from storage domain id with specific status.
|
void |
removeRepoDomainFileList(Guid id,
FileTypeExtension filetype)
Remove repository file list from cache table, of domain with the specified id.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public void removeRepoDomainFileList(Guid id, FileTypeExtension filetype)
RepoFileMetaDataDAO
removeRepoDomainFileList
in interface RepoFileMetaDataDAO
id
- - The domain id.filetype
- - The file Extension, which should be removed.public void addRepoFileMap(RepoFileMetaData map)
RepoFileMetaDataDAO
addRepoFileMap
in interface RepoFileMetaDataDAO
map
- - The repository file meta data to insert.public List<RepoFileMetaData> getRepoListForStorageDomainAndStoragePool(Guid storagePoolId, Guid storageDomainId, FileTypeExtension fileType)
RepoFileMetaDataDAO
getRepoListForStorageDomainAndStoragePool
in interface RepoFileMetaDataDAO
public List<RepoFileMetaData> getRepoListForStorageDomain(Guid storageDomainId, FileTypeExtension fileType)
RepoFileMetaDataDAO
getRepoListForStorageDomain
in interface RepoFileMetaDataDAO
public List<RepoFileMetaData> getAllRepoFilesForAllStoragePools(StorageDomainType storageDomainType, StoragePoolStatus storagePoolStatus, StorageDomainStatus storageDomainStatus, VDSStatus vdsStatus)
RepoFileMetaDataDAO
getAllRepoFilesForAllStoragePools
in interface RepoFileMetaDataDAO
Copyright © 2012. All Rights Reserved.