@Component public class StorageUnitDaoHelper extends Object
| Constructor and Description |
|---|
StorageUnitDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public 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 updateCopyright © 2019. All rights reserved.