Changeset 4623
- Timestamp:
- Nov 3, 2008, 9:32:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/BioAssaySet.java
r4517 r4623 749 749 750 750 // Everything is ok, create the new bioassay 751 BioAssay ba = newBioAssay(parent.getDataCubeColumn(), Collections.singleton(parent)); 752 ba.setName(parent.getName()); 753 return ba; 751 return newBioAssay(parent.getDataCubeColumn(), Collections.singleton(parent)); 754 752 } 755 753 … … 814 812 /** 815 813 Create a new bioassay and link to the parents. Assume that all 816 neccessary checks has been made by calling code. 814 neccessary checks has been made by calling code. If the collections contains 815 only a single parent, the name will be copied to the child. 817 816 */ 818 817 private BioAssay newBioAssay(DataCubeColumn column, Collection<BioAssay> parents) 819 818 { 820 819 BioAssay ba = BioAssay.getNew(getDbControl(), this, column); 820 int numParents = parents.size(); 821 821 822 822 // Add parents and raw parents to the new BioAssay … … 825 825 for (BioAssay parent : parents) 826 826 { 827 if (numParents == 1) ba.setName(parent.getName()); 827 828 baParents.add(parent.getData()); 828 829 rawParents.addAll(parent.getData().getRawParents());
Note: See TracChangeset
for help on using the changeset viewer.