Changeset 4358
- Timestamp:
- Jul 1, 2008, 11:08:43 AM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/AbstractEntityQuery.java
r4305 r4358 266 266 public boolean isReadonly() 267 267 { 268 return lastMainQuery != null;268 return super.isReadonly() || lastMainQuery != null; 269 269 } 270 270 -
trunk/src/core/net/sf/basedb/core/AbstractQuery.java
r4302 r4358 439 439 } 440 440 441 public boolean isReadonly() 442 { 443 return hasAutoJoined; 444 } 445 441 446 /** 442 447 Resets the query, allowing you to add more restrictions, joins, order objects … … 818 823 if (autoJoiners == null || hasAutoJoined) return; 819 824 820 hasAutoJoined = true;821 825 Iterator<QueryElement> iterator = new NestedIterator<QueryElement>( 822 826 selects, permanentSelects, temporarySelects, … … 844 848 } 845 849 } 850 hasAutoJoined = true; 846 851 } 847 852 -
trunk/src/core/net/sf/basedb/core/DynamicQuery.java
r3679 r4358 83 83 return HibernateUtil.quote(rootTable.getAlias()); 84 84 } 85 public boolean isReadonly()86 {87 return false;88 }89 85 // ------------------------------------------- 90 86 -
trunk/src/plugins/core/net/sf/basedb/plugins/LowessNormalization.java
r4356 r4358 408 408 // Count number of spots that is going to be normalized 409 409 DynamicSpotQuery query = source.getSpotData(); 410 query.restrict (intensityRestriction);410 query.restrictPermanent(intensityRestriction); 411 411 checkInterrupted(); 412 412 long numSpots = query.count(dc); 413 413 query.reset(); 414 414 415 long normalizedSpots = 0; 415 416 if (progress != null) progress.display((int)(normalizedSpots / numSpots * 100), normalizedSpots + " spots normalized"); … … 435 436 query.restrict(bioAssayRestriction); 436 437 query.order(Orders.asc(block)); 437 438 438 439 // Normalize one bioassay at a time 439 440 List<BioAssay> assays = source.getBioAssays().list(dc); -
trunk/src/plugins/core/net/sf/basedb/plugins/MedianRatioNormalization.java
r4356 r4358 442 442 // Get the number of spots to be normalized 443 443 DynamicSpotQuery query = source.getSpotData(); 444 query.restrict (intensityRestriction);444 query.restrictPermanent(intensityRestriction); 445 445 long numSpots = query.count(dc); 446 query.reset(); 446 447 long normalizedSpots = 0; 447 448 if (progress != null) … … 551 552 // Count number of spots that is going to be normalized 552 553 DynamicSpotQuery query = source.getSpotData(); 553 query.restrict (intensityRestriction);554 query.restrictPermanent(intensityRestriction); 554 555 checkInterrupted(); 555 556 long numSpots = query.count(dc); 557 query.reset(); 556 558 long normalizedSpots = 0; 557 559 if (progress != null) progress.display((int)(normalizedSpots / numSpots * 100), normalizedSpots + " spots normalized");
Note: See TracChangeset
for help on using the changeset viewer.