public interface StorageUnitDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
List<StorageUnitEntity> |
getGlacierStorageUnitsToRestore(int maxResult)
Retrieves a list of storage units that belong to GLACIER storage and have the origin 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 |
getStorageUnitByStorageNameAndDirectoryPath(String storageName,
String directoryPath)
Returns a first discovered storage unit in the specified storage that overlaps with the directory path.
|
List<StorageUnitEntity> |
getStorageUnitsByPartitionFiltersAndStorages(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 entities 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> getGlacierStorageUnitsToRestore(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 does not exist.businessObjectDataEntity - the business object data entitystorageName - the storage name (case-insensitive)StorageUnitEntity or nullStorageUnitEntity getStorageUnitByStorageNameAndDirectoryPath(String storageName, String directoryPath)
storageName - the storage name (case-insensitive)directoryPath - the directory pathList<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 entityList<StorageUnitEntity> getStorageUnitsByPartitionFiltersAndStorages(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 storages is not emptyexcludedStoragePlatformType - the optional storage platform type to be excluded from search. It is ignored when the list of storages 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 statusCopyright © 2017. All rights reserved.