@@ -382,31 +382,37 @@ public static String getDomainURIForPrefixIfExists(ExpProtocol protocol, String
382382 return result ;
383383 }
384384
385- public static Domain getDomainByPrefix (ExpProtocol protocol , String domainPrefix )
385+ public static Domain getDomainByPrefix (ExpProtocol protocol , String domainPrefix , boolean forUpdate )
386386 {
387387 Container container = protocol .getContainer ();
388- return PropertyService .get ().getDomain (container , getDomainURIForPrefix (protocol , domainPrefix ));
388+ return PropertyService .get ().getDomain (container , getDomainURIForPrefix (protocol , domainPrefix ), forUpdate );
389389 }
390390
391391 @ Nullable
392- public static Domain getDomainByPrefixIfExists (ExpProtocol protocol , String domainPrefix )
392+ public static Domain getDomainByPrefixIfExists (ExpProtocol protocol , String domainPrefix , boolean forUpdate )
393393 {
394394 String domainURI = getDomainURIForPrefixIfExists (protocol , domainPrefix );
395395 if (null == domainURI )
396396 return null ;
397397 Container container = protocol .getContainer ();
398- return PropertyService .get ().getDomain (container , domainURI );
398+ return PropertyService .get ().getDomain (container , domainURI , forUpdate );
399399 }
400400
401401 @ Override
402402 public Domain getResultsDomain (ExpProtocol protocol )
403403 {
404- return getDomainByPrefix (protocol , ExpProtocol .ASSAY_DOMAIN_DATA );
404+ return getResultsDomain (protocol , false );
405+ }
406+
407+ @ Override
408+ public Domain getResultsDomain (ExpProtocol protocol , boolean forUpdate )
409+ {
410+ return getDomainByPrefix (protocol , ExpProtocol .ASSAY_DOMAIN_DATA , forUpdate );
405411 }
406412
407413 protected @ Nullable Domain getResultsDomainIfExists (ExpProtocol protocol )
408414 {
409- return getDomainByPrefixIfExists (protocol , ExpProtocol .ASSAY_DOMAIN_DATA );
415+ return getDomainByPrefixIfExists (protocol , ExpProtocol .ASSAY_DOMAIN_DATA , false );
410416 }
411417
412418 @ Override
@@ -422,13 +428,25 @@ public void afterDomainChange(User user, ExpProtocol protocol, GWTDomain<GWTProp
422428 @ Override
423429 public Domain getBatchDomain (ExpProtocol protocol )
424430 {
425- return getDomainByPrefix (protocol , ExpProtocol .ASSAY_DOMAIN_BATCH );
431+ return getBatchDomain (protocol , false );
432+ }
433+
434+ @ Override
435+ public Domain getBatchDomain (ExpProtocol protocol , boolean forUpdate )
436+ {
437+ return getDomainByPrefix (protocol , ExpProtocol .ASSAY_DOMAIN_BATCH , forUpdate );
426438 }
427439
428440 @ Override
429441 public Domain getRunDomain (ExpProtocol protocol )
430442 {
431- return getDomainByPrefix (protocol , ExpProtocol .ASSAY_DOMAIN_RUN );
443+ return getRunDomain (protocol ,false );
444+ }
445+
446+ @ Override
447+ public Domain getRunDomain (ExpProtocol protocol , boolean forUpdate )
448+ {
449+ return getDomainByPrefix (protocol , ExpProtocol .ASSAY_DOMAIN_RUN , forUpdate );
432450 }
433451
434452 protected PropertyDescriptor addProperty (Container sourceContainer , String name , Integer value , Map <String , Object > dataMap , Collection <PropertyDescriptor > types )
0 commit comments