public interface StorageUnitDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
List<StorageUnitEntity> |
getLatestVersionStorageUnitsByStoragePlatformAndFileType(String storagePlatform,
String businessObjectFormatFileType)
Retrieves a list of storage units that belong to storage of the specified storage platform type and to business object format of the specified file type.
|
List<StorageUnitEntity> |
getS3StorageUnitsToCleanup(int maxResult)
Retrieves a list of storage units that belong to S3 storage, and has a final destroy on timestamp < current time, has a DISABLED status, and associated
BData has a DELETED status.
|
List<StorageUnitEntity> |
getS3StorageUnitsToExpire(int maxResult)
Retrieves a list of storage units that belong to S3 storage, have RESTORED status, and ready to be expired.
|
List<StorageUnitEntity> |
getS3StorageUnitsToRestore(int maxResult)
Retrieves a list of storage units that belong to S3 storage and have the relative S3 storage unit in RESTORING state.
|
StorageUnitEntity |
getStorageUnitByBusinessObjectDataAndStorage(BusinessObjectDataEntity businessObjectDataEntity,
StorageEntity storageEntity)
Gets a storage unit identified by the given business object data entity and storage entity.
|
StorageUnitEntity |
getStorageUnitByBusinessObjectDataAndStorageName(BusinessObjectDataEntity businessObjectDataEntity,
String storageName)
Gets a storage unit identified by the given business object data entity and storage name.
|
StorageUnitEntity |
getStorageUnitByKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
Gets a storage unit identified by the given business object data storage unit key.
|
StorageUnitEntity |
getStorageUnitByStorageAndDirectoryPath(StorageEntity storageEntity,
String directoryPath)
Returns a first discovered storage unit in the specified storage that overlaps with the directory path.
|
List<StorageUnitAvailabilityDto> |
getStorageUnitsByPartitionFilters(BusinessObjectFormatKey businessObjectFormatKey,
List<List<String>> partitionFilters,
Integer businessObjectDataVersion,
String businessObjectDataStatus,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType,
boolean selectOnlyAvailableStorageUnits)
Retrieves a list of storage unit availability DTOs per specified parameters.
|
List<StorageUnitEntity> |
getStorageUnitsByStorageAndBusinessObjectData(StorageEntity storageEntity,
List<BusinessObjectDataEntity> businessObjectDataEntities)
Retrieves a list of storage units that belong to the specified storage for the specified business object data.
|
List<StorageUnitEntity> |
getStorageUnitsByStoragePlatformAndBusinessObjectData(String storagePlatform,
BusinessObjectDataEntity businessObjectDataEntity)
Retrieves a list of storage units that belong to storage of the specified storage platform for the specified business object data.
|
delete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshList<StorageUnitEntity> getLatestVersionStorageUnitsByStoragePlatformAndFileType(String storagePlatform, String businessObjectFormatFileType)
storagePlatform - the storage platformbusinessObjectFormatFileType - the business object format file typeList<StorageUnitEntity> getS3StorageUnitsToCleanup(int maxResult)
maxResult - the maximum number of results to retrieveList<StorageUnitEntity> getS3StorageUnitsToExpire(int maxResult)
maxResult - the maximum number of results to retrieveList<StorageUnitEntity> getS3StorageUnitsToRestore(int maxResult)
maxResult - the maximum number of results to retrieveStorageUnitEntity getStorageUnitByBusinessObjectDataAndStorage(BusinessObjectDataEntity businessObjectDataEntity, StorageEntity storageEntity)
null if storage unit entity does not exist.businessObjectDataEntity - the business object data entitystorageEntity - the storage entityStorageUnitEntity or nullStorageUnitEntity getStorageUnitByBusinessObjectDataAndStorageName(BusinessObjectDataEntity businessObjectDataEntity, String storageName)
null if storage unit entity does not exist.businessObjectDataEntity - the business object data entitystorageName - the storage name (case-insensitive)StorageUnitEntity or nullStorageUnitEntity getStorageUnitByKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
null if storage unit does not exist.businessObjectDataStorageUnitKey - the business object data storage unit keyStorageUnitEntity or nullStorageUnitEntity getStorageUnitByStorageAndDirectoryPath(StorageEntity storageEntity, String directoryPath)
storageEntity - the storage entitydirectoryPath - the directory pathList<StorageUnitAvailabilityDto> getStorageUnitsByPartitionFilters(BusinessObjectFormatKey businessObjectFormatKey, List<List<String>> partitionFilters, Integer businessObjectDataVersion, String businessObjectDataStatus, List<String> storageNames, String storagePlatformType, String excludedStoragePlatformType, boolean selectOnlyAvailableStorageUnits)
businessObjectFormatKey - the business object format key (case-insensitive). If a business object format version isn't specified, the latest
available format version for each partition value will be used.partitionFilters - the list of partition filter to be used to select business object data instances. Each partition filter contains a list of
primary and sub-partition values in the right order up to the maximum partition levels allowed by business object data registration - with partition
values for the relative partitions not to be used for selection passed as nulls.businessObjectDataVersion - the business object data version. If a business object data version isn't specified, the latest data version based on
the specified business object data status is returned.businessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified. When
business object data version and business object data status both are not specified, the latest data version for each set of partition values will be
used regardless of the status.storageNames - the optional list of storage names where the business object data storage units should be looked for (case-insensitive)storagePlatformType - the optional storage platform type, e.g. S3 for Hive DDL. It is ignored when the list of storage names is not emptyexcludedStoragePlatformType - the optional storage platform type to be excluded from search. It is ignored when the list of storage names is not
empty or the storage platform type is specifiedselectOnlyAvailableStorageUnits - specifies if only available storage units will be selected or any storage units regardless of their statusList<StorageUnitEntity> getStorageUnitsByStorageAndBusinessObjectData(StorageEntity storageEntity, List<BusinessObjectDataEntity> businessObjectDataEntities)
storageEntity - the storage entitybusinessObjectDataEntities - the list of business object data entitiesList<StorageUnitEntity> getStorageUnitsByStoragePlatformAndBusinessObjectData(String storagePlatform, BusinessObjectDataEntity businessObjectDataEntity)
storagePlatform - the storage platformbusinessObjectDataEntity - the business object data entityCopyright © 2019. All rights reserved.