Changeset 4613
- Timestamp:
- Oct 29, 2008, 9:23:56 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/data/BioMaterialData.java
r4517 r4613 22 22 */ 23 23 package net.sf.basedb.core.data; 24 25 import java.util.Set; 24 26 25 27 /** … … 60 62 } 61 63 64 private Set<MeasuredBioMaterialData> children; 65 /** 66 This is the inverse end. NOTE! This collection will not 67 contained pooled children or hybridizations. 68 @see MeasuredBioMaterialData#getParent() 69 @since 2.9 70 @hibernate.set inverse="true" lazy="true" 71 @hibernate.collection-key column="`parent_id`" 72 @hibernate.collection-one-to-many class="net.sf.basedb.core.data.MeasuredBioMaterialData" 73 */ 74 Set<MeasuredBioMaterialData> getChildren() 75 { 76 return children; 77 } 78 void setChildren(Set<MeasuredBioMaterialData> children) 79 { 80 this.children = children; 81 } 62 82 63 83 } -
trunk/src/core/net/sf/basedb/core/data/BioMaterialEventData.java
r4517 r4613 26 26 import java.util.Map; 27 27 import java.util.HashMap; 28 import java.util.Set; 28 29 29 30 /** … … 210 211 } 211 212 213 private Set<MeasuredBioMaterialData> sourceBioMaterials; 214 /** 215 This is the inverse end. The children is the non-pooled biomaterials 216 that has this item as a parent. 217 @see MeasuredBioMaterialData#getParent() 218 @since 2.9 219 @hibernate.set table="`BioMaterialEventSources`" inverse="true" lazy="true" 220 @hibernate.collection-key column="`event_id`" 221 @hibernate.collection-many-to-many column="`biomaterial_id`" class="net.sf.basedb.core.data.MeasuredBioMaterialData" 222 */ 223 Set<MeasuredBioMaterialData> getSourceBioMaterials() 224 { 225 return sourceBioMaterials; 226 } 227 void setSourceBioMaterials(Set<MeasuredBioMaterialData> sourceBioMaterials) 228 { 229 this.sourceBioMaterials = sourceBioMaterials; 230 } 212 231 213 232 } -
trunk/www/biomaterials/biosources/list_biosources.jsp
r4596 r4613 251 251 id="samples" 252 252 title="Samples" 253 property="&children(name)" 254 datatype="string" 255 filterable="true" 253 256 /> 254 257 <tbl:columndef -
trunk/www/biomaterials/extracts/list_extracts.jsp
r4596 r4613 322 322 id="parents" 323 323 title="Parents" 324 property="&creationEvent.sourceBioMaterials(name)" 325 datatype="string" 326 filterable="true" 324 327 /> 325 328 <tbl:columndef 326 329 id="labeledextracts" 327 330 title="Labeled extracts" 331 property="&children(name)" 332 datatype="string" 333 filterable="true" 328 334 /> 329 335 <tbl:columndef -
trunk/www/biomaterials/labeledextracts/list_labeledextracts.jsp
r4596 r4613 330 330 id="parents" 331 331 title="Parents" 332 property="&creationEvent.sourceBioMaterials(name)" 333 datatype="string" 334 filterable="true" 332 335 /> 333 336 <tbl:columndef 334 337 id="hybridizations" 335 338 title="Hybridizations" 339 property="&sourceEvents(event.hybridization.name)" 340 datatype="string" 341 filterable="true" 336 342 /> 337 343 <tbl:columndef -
trunk/www/biomaterials/samples/list_samples.jsp
r4596 r4613 321 321 /> 322 322 <tbl:columndef 323 id="bioSource" 324 title="Biosource" 325 property="parent.name" 326 datatype="string" 327 sortable="true" 328 filterable="true" 329 exportable="true" 330 /> 331 <tbl:columndef 323 332 id="parents" 324 333 title="Parents" 334 property="&creationEvent.sourceBioMaterials(name)" 335 datatype="string" 336 filterable="true" 325 337 /> 326 338 <tbl:columndef 327 339 id="extracts" 328 340 title="Extracts" 341 property="&children(name)" 342 datatype="string" 343 filterable="true" 329 344 /> 330 345 <tbl:columndef … … 571 586 <tbl:cell column="eventDate" value="<%=creationEvent.getEventDate()%>" /> 572 587 <tbl:cell column="entryDate" value="<%=creationEvent.getEntryDate()%>" /> 588 <tbl:cell column="bioSource"><base:propertyvalue item="<%=item%>" property="parent"/></tbl:cell> 573 589 <tbl:cell column="parents"> 574 590 <% 575 if (!item.isPooled()) 576 { 577 %> 578 <base:propertyvalue item="<%=item%>" property="parent"/> 579 <% 580 } 581 else 591 if (item.isPooled()) 582 592 { 583 593 String separator = ""; … … 601 611 } 602 612 %> 603 613 </tbl:cell> 604 614 <tbl:cell column="extracts"> 605 615 <% -
trunk/www/views/experiments/index.jsp
r4587 r4613 341 341 redirect = "../../common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&main_type=OTHER&title=Run+plugin"; 342 342 } 343 else if ("DeleteAllRawData".equals(cmd)) 344 { 345 dc = sc.newDbControl(); 346 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 347 Experiment exp = Experiment.getById(dc, cc.getId()); 348 List<RawBioAssay> all = new ArrayList<RawBioAssay>(exp.getRawBioAssays().list(dc)); 349 for (RawBioAssay rba : all) 350 { 351 exp.removeRawBioAssay(rba); 352 } 353 dc.commit(); 354 355 dc = sc.newDbControl(); 356 for (RawBioAssay rba : all) 357 { 358 rba = RawBioAssay.getById(dc, rba.getId()); 359 rba.deleteRawData(); 360 } 361 dc.commit(); 362 363 dc = sc.newDbControl(); 364 exp = Experiment.getById(dc, cc.getId()); 365 for (RawBioAssay rba : all) 366 { 367 exp.addRawBioAssay(rba); 368 } 369 dc.commit(); 370 redirect = viewPage; 371 } 343 372 else 344 373 { -
trunk/www/views/experiments/view_experiment.jsp
r4578 r4613 148 148 location.href = '<%=root%>/analyze/index.jsp?ID=<%=ID%>&experiment_id=<%=itemId%>'; 149 149 } 150 function deleteAllRaw() 151 { 152 location.href = 'index.jsp?ID=<%=ID%>&cmd=DeleteAllRawData&item_id=<%=itemId%>'; 153 } 150 154 function viewBioAssaySets() 151 155 { … … 271 275 title="Help…" 272 276 tooltip="Get help about this page" 277 /> 278 <tbl:button 279 onclick="deleteAllRaw()" 280 title="Delete all raw data" 273 281 /> 274 282 </tbl:toolbar> -
trunk/www/views/hybridizations/list_hybridizations.jsp
r4596 r4613 266 266 id="labeledExtracts" 267 267 title="Labeled extracts" 268 property="&creationEvent.sourceBioMaterials(name)" 269 datatype="string" 270 filterable="true" 268 271 /> 269 272 <tbl:columndef … … 279 282 id="scans" 280 283 title="Scans" 284 property="&scans(name)" 285 datatype="string" 286 filterable="true" 281 287 /> 282 288 <tbl:columndef -
trunk/www/views/scans/list_scans.jsp
r4596 r4613 270 270 id="rawBioAssays" 271 271 title="Raw bioassays" 272 property="&rawBioAssays(name)" 273 datatype="string" 274 filterable="true" 272 275 /> 273 276 <tbl:columndef
Note: See TracChangeset
for help on using the changeset viewer.