protected BusinessObjectDataAttribute updateBusinessObjectDataAttributeImpl(BusinessObjectDataAttributeKey businessObjectDataAttributeKey,BusinessObjectDataAttributeUpdateRequest request){
  businessObjectDataAttributeHelper.validateBusinessObjectDataAttributeKey(businessObjectDataAttributeKey);
  BusinessObjectFormatEntity businessObjectFormatEntity=businessObjectFormatDaoHelper.getBusinessObjectFormatEntity(new BusinessObjectFormatKey(businessObjectDataAttributeKey.getNamespace(),businessObjectDataAttributeKey.getBusinessObjectDefinitionName(),businessObjectDataAttributeKey.getBusinessObjectFormatUsage(),businessObjectDataAttributeKey.getBusinessObjectFormatFileType(),businessObjectDataAttributeKey.getBusinessObjectFormatVersion()));
  if (businessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(businessObjectDataAttributeKey.getBusinessObjectDataAttributeName(),businessObjectFormatEntity)) {
    Assert.hasText(request.getBusinessObjectDataAttributeValue(),String.format("A business object data attribute value must be specified since \"%s\" is a required attribute for business object format {%s}.",businessObjectDataAttributeKey.getBusinessObjectDataAttributeName(),businessObjectFormatHelper.businessObjectFormatEntityAltKeyToString(businessObjectFormatEntity)));
  }
  BusinessObjectDataAttributeEntity businessObjectDataAttributeEntity=businessObjectDataAttributeDaoHelper.getBusinessObjectDataAttributeEntity(businessObjectDataAttributeKey);
  businessObjectDataAttributeEntity.setValue(request.getBusinessObjectDataAttributeValue());
  businessObjectDataAttributeEntity=businessObjectDataAttributeDao.saveAndRefresh(businessObjectDataAttributeEntity);
  return createBusinessObjectDataAttributeFromEntity(businessObjectDataAttributeEntity);
}

protected BusinessObjectDataAttribute updateBusinessObjectDataAttributeImpl ( BusinessObjectDataAttributeKey businessObjectDataAttributeKey , BusinessObjectDataAttributeUpdateRequest request ) { businessObjectDataAttributeHelper . validateBusinessObjectDataAttributeKey ( businessObjectDataAttributeKey ) ; BusinessObjectFormatEntity businessObjectFormatEntity = businessObjectFormatDaoHelper . getBusinessObjectFormatEntity ( new BusinessObjectFormatKey ( businessObjectDataAttributeKey . getNamespace ( ) , businessObjectDataAttributeKey . getBusinessObjectDefinitionName ( ) , businessObjectDataAttributeKey . getBusinessObjectFormatUsage ( ) , businessObjectDataAttributeKey . getBusinessObjectFormatFileType ( ) , businessObjectDataAttributeKey . getBusinessObjectFormatVersion ( ) ) ) ; if ( businessObjectDataAttributeHelper . isBusinessObjectDataAttributeRequired ( businessObjectDataAttributeKey . getBusinessObjectDataAttributeName ( ) , businessObjectFormatEntity ) ) { Assert . hasText ( request . getBusinessObjectDataAttributeValue ( ) , String . format ( "A business object data attribute value must be specified since \"%s\" is a required attribute for business object format {%s}." , businessObjectDataAttributeKey . getBusinessObjectDataAttributeName ( ) , businessObjectFormatHelper . businessObjectFormatEntityAltKeyToString ( businessObjectFormatEntity ) ) ) ; } BusinessObjectDataAttributeEntity businessObjectDataAttributeEntity = businessObjectDataAttributeDaoHelper . getBusinessObjectDataAttributeEntity ( businessObjectDataAttributeKey ) ; businessObjectDataAttributeEntity . setValue ( request . getBusinessObjectDataAttributeValue ( ) ) ; businessObjectDataAttributeEntity = businessObjectDataAttributeDao . saveAndRefresh ( businessObjectDataAttributeEntity ) ; return createBusinessObjectDataAttributeFromEntity ( businessObjectDataAttributeEntity ) ; }
updates an existing business object data attribute by key .
