@Component public class StorageUnitDaoHelper extends Object
| Constructor and Description |
|---|
StorageUnitDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
StorageUnitEntity |
findExplicitlyRegisteredSubPartitionInStorageForBusinessObjectData(StorageEntity storageEntity,
BusinessObjectFormatEntity businessObjectFormatEntity,
BusinessObjectFormat businessObjectFormat,
BusinessObjectDataKey businessObjectDataKey)
Tries to find at least one sub-partition for the specified business object data that is explicitly registered in the same storage.
|
StorageUnitEntity |
getStorageUnitEntity(String storageName,
BusinessObjectDataEntity businessObjectDataEntity)
Retrieves a storage unit entity for the business object data in the specified storage and make sure it exists.
|
StorageUnitEntity |
getStorageUnitEntityByBusinessObjectDataAndStorage(BusinessObjectDataEntity businessObjectDataEntity,
StorageEntity storageEntity)
Retrieves a storage unit entity for the business object data in the specified storage and make sure it exists.
|
StorageUnitEntity |
getStorageUnitEntityByKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
Retrieves a storage unit entity for the specified business object data storage unit key and makes sure it exists.
|
void |
setStorageUnitStatus(StorageUnitEntity storageUnitEntity,
StorageUnitStatusEntity storageUnitStatusEntity)
Sets storage unit status value for a storage unit.
|
void |
updateStorageUnitStatus(StorageUnitEntity storageUnitEntity,
StorageUnitStatusEntity storageUnitStatusEntity,
String reason)
Updates storage unit status value for a storage unit.
|
void |
updateStorageUnitStatus(StorageUnitEntity storageUnitEntity,
String storageUnitStatus,
String reason)
Update the storage unit status.
|
void |
validateNoExplicitlyRegisteredSubPartitionInStorageForBusinessObjectData(StorageEntity storageEntity,
BusinessObjectFormatEntity businessObjectFormatEntity,
BusinessObjectDataKey businessObjectDataKey,
String s3KeyPrefix)
Validates that there are no explicitly registered sub-partitions in storage for the business object data.
|
public StorageUnitEntity findExplicitlyRegisteredSubPartitionInStorageForBusinessObjectData(StorageEntity storageEntity, BusinessObjectFormatEntity businessObjectFormatEntity, BusinessObjectFormat businessObjectFormat, BusinessObjectDataKey businessObjectDataKey)
storageEntity - the storage entitybusinessObjectFormatEntity - the business object format entitybusinessObjectFormat - the business object formatbusinessObjectDataKey - the business object data keypublic StorageUnitEntity getStorageUnitEntity(String storageName, BusinessObjectDataEntity businessObjectDataEntity)
storageName - the storage namebusinessObjectDataEntity - the business object data entitypublic StorageUnitEntity getStorageUnitEntityByBusinessObjectDataAndStorage(BusinessObjectDataEntity businessObjectDataEntity, StorageEntity storageEntity)
businessObjectDataEntity - the business object data entitystorageEntity - the storage entitypublic StorageUnitEntity getStorageUnitEntityByKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
businessObjectDataStorageUnitKey - the business object data storage unit keypublic void setStorageUnitStatus(StorageUnitEntity storageUnitEntity, StorageUnitStatusEntity storageUnitStatusEntity)
storageUnitEntity - the storage unit entitystorageUnitStatusEntity - the storage unit status entitypublic void updateStorageUnitStatus(StorageUnitEntity storageUnitEntity, String storageUnitStatus, String reason)
storageUnitEntity - the storage unit entitystorageUnitStatus - the new storage unit statusreason - the reason for the updatepublic void updateStorageUnitStatus(StorageUnitEntity storageUnitEntity, StorageUnitStatusEntity storageUnitStatusEntity, String reason)
storageUnitEntity - the storage unit entitystorageUnitStatusEntity - the new storage unit status entityreason - the reason for the updatepublic void validateNoExplicitlyRegisteredSubPartitionInStorageForBusinessObjectData(StorageEntity storageEntity, BusinessObjectFormatEntity businessObjectFormatEntity, BusinessObjectDataKey businessObjectDataKey, String s3KeyPrefix)
storageEntity - the storage entitybusinessObjectFormatEntity - the business object format entitybusinessObjectDataKey - the business object data keys3KeyPrefix - the S3 key prefix for the business object data in this storageCopyright © 2021. All rights reserved.