@Repository public class StorageUnitDaoImpl extends AbstractHerdDao implements StorageUnitDao
AbstractHerdDao.AggregateFunctionBUSINESS_OBJECT_DATA_PARTITIONS, BUSINESS_OBJECT_DATA_SUBPARTITIONS, configurationHelper, DEFAULT_SINGLE_DAY_DATE_MASK, MAX_PARTITION_FILTERS_PER_REQUESTentityManager| Constructor and Description |
|---|
StorageUnitDaoImpl() |
| 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.
|
getQueryRestriction, getQueryRestriction, getQueryRestriction, getQueryRestriction, getQueryRestrictionOnBusinessObjectDataVersionAndStatus, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnStorage, savedelete, detach, executeSingleResultQuery, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, getPredicateForInClause, query, queryByNamedParams, saveAndRefreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshpublic StorageUnitEntity getExplicitlyRegisteredSubPartition(StorageEntity storageEntity, BusinessObjectFormatEntity businessObjectFormatEntity, String partitionValue, List<String> subPartitionValues, Integer businessObjectDataVersion)
StorageUnitDaogetExplicitlyRegisteredSubPartition in interface StorageUnitDaostorageEntity - 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 versionpublic List<StorageUnitEntity> getLatestVersionStorageUnitsByStoragePlatformAndFileType(String storagePlatform, String businessObjectFormatFileType)
StorageUnitDaogetLatestVersionStorageUnitsByStoragePlatformAndFileType in interface StorageUnitDaostoragePlatform - the storage platformbusinessObjectFormatFileType - the business object format file typepublic List<StorageUnitEntity> getS3StorageUnitsToCleanup(int maxResult)
StorageUnitDaogetS3StorageUnitsToCleanup in interface StorageUnitDaomaxResult - the maximum number of results to retrievepublic List<StorageUnitEntity> getS3StorageUnitsToExpire(int maxResult)
StorageUnitDaogetS3StorageUnitsToExpire in interface StorageUnitDaomaxResult - the maximum number of results to retrievepublic List<StorageUnitEntity> getS3StorageUnitsToRestore(int maxResult)
StorageUnitDaogetS3StorageUnitsToRestore in interface StorageUnitDaomaxResult - the maximum number of results to retrievepublic StorageUnitEntity getStorageUnitByBusinessObjectDataAndStorage(BusinessObjectDataEntity businessObjectDataEntity, StorageEntity storageEntity)
StorageUnitDaonull if storage unit entity does not exist.getStorageUnitByBusinessObjectDataAndStorage in interface StorageUnitDaobusinessObjectDataEntity - the business object data entitystorageEntity - the storage entityStorageUnitEntity or nullpublic StorageUnitEntity getStorageUnitByBusinessObjectDataAndStorageName(BusinessObjectDataEntity businessObjectDataEntity, String storageName)
StorageUnitDaonull if storage unit entity does not exist.getStorageUnitByBusinessObjectDataAndStorageName in interface StorageUnitDaobusinessObjectDataEntity - the business object data entitystorageName - the storage name (case-insensitive)StorageUnitEntity or nullpublic StorageUnitEntity getStorageUnitByKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
StorageUnitDaonull if storage unit does not exist.getStorageUnitByKey in interface StorageUnitDaobusinessObjectDataStorageUnitKey - the business object data storage unit keyStorageUnitEntity or nullpublic StorageUnitEntity getStorageUnitByStorageAndDirectoryPath(StorageEntity storageEntity, String directoryPath)
StorageUnitDaogetStorageUnitByStorageAndDirectoryPath in interface StorageUnitDaostorageEntity - the storage entitydirectoryPath - the directory pathpublic 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)
StorageUnitDaogetStorageUnitsByPartitionFilters in interface StorageUnitDaobusinessObjectDefinitionEntity - 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 timepublic List<StorageUnitEntity> getStorageUnitsByStorageAndBusinessObjectData(StorageEntity storageEntity, List<BusinessObjectDataEntity> businessObjectDataEntities)
StorageUnitDaogetStorageUnitsByStorageAndBusinessObjectData in interface StorageUnitDaostorageEntity - the storage entitybusinessObjectDataEntities - the list of business object data entitiespublic List<StorageUnitEntity> getStorageUnitsByStoragePlatformAndBusinessObjectData(String storagePlatform, BusinessObjectDataEntity businessObjectDataEntity)
StorageUnitDaogetStorageUnitsByStoragePlatformAndBusinessObjectData in interface StorageUnitDaostoragePlatform - the storage platformbusinessObjectDataEntity - the business object data entityCopyright © 2021. All rights reserved.