Changeset 5791
- Timestamp:
- Dec 16, 2019, 8:32:07 AM (3 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/ReggieItem.java
r5790 r5791 333 333 } 334 334 335 // TODO - remove once we have found all places that create child items336 @Deprecated337 335 protected String getNextChildItemName(DbControl dc, ItemQuery<? extends Nameable> childQuery, String suffix, boolean releaseIfTransactionFails) 338 336 { … … 365 363 @since 4.19 366 364 */ 367 // TODO - remove once we have found all places that create child items368 @Deprecated369 365 public static String getNextChildItemName(DbControl dc, String parentName, ItemQuery<? extends Nameable> childQuery, String suffix, boolean releaseIfTransactionFails) 370 366 { -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/DemuxJobCreator.java
r5786 r5791 38 38 import net.sf.basedb.reggie.Reggie; 39 39 import net.sf.basedb.reggie.dao.Annotationtype; 40 import net.sf.basedb.reggie.dao.DoNotUse; 40 41 import net.sf.basedb.reggie.dao.FlowCell; 41 42 import net.sf.basedb.reggie.dao.Library; … … 267 268 merged.setProtocol(mergeProtocol); 268 269 merged.setExtract(lib.getExtract()); 269 270 DoNotUse.copyDoNotUseAnnotations(dc, lib.getExtract(), merged, false); 270 271 boolean isExternal = Reggie.isExternalItem(mergeName); 271 272 String rootName = isExternal ? lib.getTopExtractOrSample(dc).getName() : null; -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/HisatAlignJobCreator.java
r5618 r5791 45 45 import net.sf.basedb.reggie.dao.BiomaterialList; 46 46 import net.sf.basedb.reggie.dao.Datafiletype; 47 import net.sf.basedb.reggie.dao.DoNotUse; 47 48 import net.sf.basedb.reggie.dao.Fileserver; 48 49 import net.sf.basedb.reggie.dao.FlowCell; … … 264 265 masked.setProtocol(maskingProtocol); 265 266 masked.addParent(merged); 267 DoNotUse.copyDoNotUseAnnotations(dc, merged, masked, false); 266 268 dc.saveItem(masked); 267 269 … … 276 278 aligned.setProtocol(alignProtocol); 277 279 aligned.addParent(masked); 280 DoNotUse.copyDoNotUseAnnotations(dc, merged, aligned, false); 278 281 dc.saveItem(aligned); 279 282 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/ExtractionServlet.java
r5785 r5791 44 44 import net.sf.basedb.reggie.dao.BioplateType; 45 45 import net.sf.basedb.reggie.dao.Dna; 46 import net.sf.basedb.reggie.dao.DoNotUse; 46 47 import net.sf.basedb.reggie.dao.Lysate; 47 48 import net.sf.basedb.reggie.dao.ReactionPlate; … … 671 672 dnaEvent.setProtocol(dnaProtocol); 672 673 dnaEvent.setSource(lysate).setUsedQuantity(lysateProcessedQuantity / 3); 674 DoNotUse.copyDoNotUseAnnotations(dc, lysate, dna, false); 673 675 float dnaVolume = ((Number)jsonDna.get("volume")).floatValue(); 674 676 float dnaNdConc = ((Number)jsonDna.get("ndConc")).floatValue(); … … 720 722 rnaEvent.setProtocol(rnaProtocol); 721 723 rnaEvent.setSource(lysate).setUsedQuantity(lysateProcessedQuantity / 3); 724 DoNotUse.copyDoNotUseAnnotations(dc, lysate, rna, false); 722 725 float rnaVolume = ((Number)jsonRna.get("volume")).floatValue(); 723 726 float rnaNdConc = ((Number)jsonRna.get("ndConc")).floatValue(); … … 773 776 ftEvent.setProtocol(ftProtocol); 774 777 ftEvent.setSource(lysate).setUsedQuantity(lysateProcessedQuantity / 3); 778 DoNotUse.copyDoNotUseAnnotations(dc, lysate, ft, false); 775 779 ft.setOriginalQuantity(((Number)jsonFt.get("volume")).floatValue()); 776 780 ft.setBioWell(StoragePlate.getChildBioWell(dc, lysateWell, "Lys", "FT")); … … 904 908 normalizedRna.setOriginalQuantity(usedQuantity.floatValue()); 905 909 BioMaterialEventSource evtSrc = creationEvent.setSource(parentRna); 910 DoNotUse.copyDoNotUseAnnotations(dc, parentRna, normalizedRna, false); 906 911 evtSrc.setUsedQuantity(usedQuantity.floatValue()); 907 912 … … 1005 1010 normalizedDna.setOriginalQuantity(usedQuantity.floatValue()); 1006 1011 BioMaterialEventSource evtSrc = creationEvent.setSource(parentDna); 1012 DoNotUse.copyDoNotUseAnnotations(dc, parentDna, normalizedDna, false); 1007 1013 evtSrc.setUsedQuantity(usedQuantity.floatValue()); 1008 1014 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/HistologyServlet.java
r5784 r5791 61 61 import net.sf.basedb.reggie.dao.BiomaterialList; 62 62 import net.sf.basedb.reggie.dao.BioplateType; 63 import net.sf.basedb.reggie.dao.DoNotUse; 63 64 import net.sf.basedb.reggie.dao.HeGlass; 64 65 import net.sf.basedb.reggie.dao.Histology; … … 748 749 BioMaterialEvent creationEvent = stained.getCreationEvent(); 749 750 creationEvent.setSource(histology); 751 DoNotUse.copyDoNotUseAnnotations(dc, histology, stained, false); 750 752 creationEvent.setEventDate(stainDate); 751 753 creationEvent.setProtocol(protocol); -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/LibPrepServlet.java
r5553 r5791 69 69 import net.sf.basedb.reggie.dao.BioplateType; 70 70 import net.sf.basedb.reggie.dao.CDna; 71 import net.sf.basedb.reggie.dao.DoNotUse; 71 72 import net.sf.basedb.reggie.dao.Library; 72 73 import net.sf.basedb.reggie.dao.Pipeline; … … 480 481 lib.setTag(Tag.getById(dc, ((Number)jsonBarcode.get("id")).intValue())); 481 482 BioMaterialEventSource evtSrc = lib.getCreationEvent().setSource(c); 483 DoNotUse.copyDoNotUseAnnotations(dc, c, lib, false); 482 484 lib.setBioWell(libPlate.getBioWell(c.getBioWell().getPlateCoordinate())); 483 485 dc.saveItem(lib); -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/MRnaServlet.java
r5553 r5791 54 54 import net.sf.basedb.reggie.dao.BioplateType; 55 55 import net.sf.basedb.reggie.dao.CDna; 56 import net.sf.basedb.reggie.dao.DoNotUse; 56 57 import net.sf.basedb.reggie.dao.MRna; 57 58 import net.sf.basedb.reggie.dao.Pipeline; … … 539 540 childExtract.setName(childName); 540 541 BioMaterialEventSource evtSrc = childExtract.getCreationEvent().setSource(r); 542 DoNotUse.copyDoNotUseAnnotations(dc, r, childExtract, false); 541 543 evtSrc.setUsedQuantity(usedQuantity.floatValue()); 542 544 … … 754 756 cdna.setBioWell(cdnaPlate.getBioWell(well.getPlateCoordinate())); 755 757 cdna.getCreationEvent().setSource(mrna); 758 DoNotUse.copyDoNotUseAnnotations(dc, mrna, cdna, false); 756 759 dc.saveItem(cdna); 757 760 numCdna++; -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/MipsServlet.java
r5760 r5791 54 54 import net.sf.basedb.reggie.dao.BioplateType; 55 55 import net.sf.basedb.reggie.dao.Dna; 56 import net.sf.basedb.reggie.dao.DoNotUse; 56 57 import net.sf.basedb.reggie.dao.FlowCell; 57 58 import net.sf.basedb.reggie.dao.Library; … … 618 619 Float remainingQuantityBefore = d.getRemainingQuantity(); 619 620 BioMaterialEventSource evtSrc = childExtract.getCreationEvent().setSource(d); 621 DoNotUse.copyDoNotUseAnnotations(dc, d, childExtract, false); 620 622 if (remainingQuantityBefore != null) 621 623 { -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/PartitionRegistrationServlet.java
r5421 r5791 30 30 import net.sf.basedb.reggie.counter.CounterService; 31 31 import net.sf.basedb.reggie.dao.Annotationtype; 32 import net.sf.basedb.reggie.dao.DoNotUse; 32 33 import net.sf.basedb.reggie.dao.ReggieRole; 33 34 import net.sf.basedb.reggie.dao.SpecimenTube; … … 270 271 { 271 272 Extract lysExtract = specimen.newExtract(apWeight.floatValue()); 273 DoNotUse.copyDoNotUseAnnotations(dc, specimen, lysExtract, false); 272 274 lysExtract.setItemSubtype(lysateType); 273 275 lysExtract.setName(tube.getNextLysateName(dc)); … … 320 322 BioMaterialEvent creationEvent = hisSample.getCreationEvent(); 321 323 creationEvent.addSource(specimen).setUsedQuantity(hisWeight.floatValue()); 324 DoNotUse.copyDoNotUseAnnotations(dc, specimen, hisSample, false); 322 325 323 326 Annotationtype.PARTITION_DATE.setAnnotationValue(dc, hisSample, partitionDate); -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/RnaQcServlet.java
r5421 r5791 47 47 import net.sf.basedb.reggie.dao.Annotationtype; 48 48 import net.sf.basedb.reggie.dao.BioplateType; 49 import net.sf.basedb.reggie.dao.DoNotUse; 49 50 import net.sf.basedb.reggie.dao.Lysate; 50 51 import net.sf.basedb.reggie.dao.ReactionPlate; … … 389 390 rnaQc.setName(ReggieItem.ensureNonExistingItem(dc, Subtype.RNAQC, (String)jsonRnaQc.get("name"))); 390 391 BioMaterialEventSource evtSrc = rnaQc.getCreationEvent().setSource(parentRna); 392 DoNotUse.copyDoNotUseAnnotations(dc, parentRna, rnaQc, false); 391 393 if (volume != null) 392 394 {
Note: See TracChangeset
for help on using the changeset viewer.