public interface StorageUnitDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
StorageUnitEntity |
getExplicitlyRegisteredSubPartition(StorageEntity storageEntity,
BusinessObjectFormatEntity businessObjectFormatEntity,
String partitionValue,
List<String> subPartitionValues,
Integer businessObjectDataVersion)
Retrieves first found storage unit entity that matches specified storage and business object data alternate key values, but registered with some
additional sub-partition values.
|
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(BusinessObjectDefinitionEntity businessObjectDefinitionEntity,
String businessObjectFormatUsage,
FileTypeEntity fileTypeEntity,
Integer businessObjectFormatVersion,
List<List<String>> partitionFilters,
Integer businessObjectDataVersion,
BusinessObjectDataStatusEntity businessObjectDataStatusEntity,
List<StorageEntity> storageEntities,
StoragePlatformEntity storagePlatformEntity,
StoragePlatformEntity excludedStoragePlatformEntity,
boolean selectOnlyAvailableStorageUnits,
XMLGregorianCalendar asOfTime)
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, saveAndRefreshStorageUnitEntity getExplicitlyRegisteredSubPartition(StorageEntity storageEntity, BusinessObjectFormatEntity businessObjectFormatEntity, String partitionValue, List<String> subPartitionValues, Integer businessObjectDataVersion)
storageEntity - the storage entitybusinessObjectFormatEntity - the business object format entitypartitionValue - the business object data primary partition valuesubPartitionValues - the list of business object data sub-partition values, maybe null or emptybusinessObjectDataVersion - the business object data versionList<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(BusinessObjectDefinitionEntity businessObjectDefinitionEntity, String businessObjectFormatUsage, FileTypeEntity fileTypeEntity, Integer businessObjectFormatVersion, List<List<String>> partitionFilters, Integer businessObjectDataVersion, BusinessObjectDataStatusEntity businessObjectDataStatusEntity, List<StorageEntity> storageEntities, StoragePlatformEntity storagePlatformEntity, StoragePlatformEntity excludedStoragePlatformEntity, boolean selectOnlyAvailableStorageUnits, XMLGregorianCalendar asOfTime)
businessObjectDefinitionEntity - the business object definition entitybusinessObjectFormatUsage - the business object format usage (case-insensitive)fileTypeEntity - the file type entitybusinessObjectFormatVersion - the optional business object format version. If a business object format version isn't specified, the latest available
format version for each partition value will be usedpartitionFilters - 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.businessObjectDataStatusEntity - the optional business object data status entity. 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 statusstorageEntities - the optional list of storage entities where business object data storage units should be looked forstoragePlatformEntity - the optional storage platform entity, e.g. S3 for Hive DDL. It is ignored when the list of storage entities is not emptyexcludedStoragePlatformEntity - the optional storage platform entity to be excluded from search. It is ignored when the list of storage entities is
not empty or the storage platform entity is specifiedselectOnlyAvailableStorageUnits - specifies if only available storage units will be selected or any storage units regardless of their statusasOfTime - specifies the date and time when the business object status was effective at that timeList<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 © 2021. All rights reserved.