Changeset 2474
- Timestamp:
- Jul 31, 2006, 3:52:51 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 10 deleted
- 78 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/3rd-party-components.txt
r2315 r2474 39 39 40 40 More info : http://www.hibernate.org/ 41 Version : 3. 1.241 Version : 3.2.0.cr3 42 42 License : LGPL (hibernate.license.txt) 43 Jar files : hibernate3.jar, antlr-2.7.6 rc1.jar, asm.jar, asm-attrs.jar,43 Jar files : hibernate3.jar, antlr-2.7.6.jar, asm.jar, asm-attrs.jar, 44 44 cglib-2.1.3.jar, commons-collections-2.1.1.jar, commons-logging-1.0.4.jar 45 dom4j-1.6.1.jar, ehcache-1. 1.jar, jta.jar, log4j-1.2.11.jar,45 dom4j-1.6.1.jar, ehcache-1.2.jar, jta.jar, log4j-1.2.11.jar, 46 46 c3p0-0.9.0.jar 47 47 … … 56 56 57 57 More info : http://logging.apache.org/log4j/docs/ 58 Version : 1.2.1 158 Version : 1.2.13 59 59 License : Apache License 2.0 (apache.license-2.0.txt) 60 Jar files : log4j-1.2.1 1.jar60 Jar files : log4j-1.2.13.jar 61 61 62 62 JDOM … … 89 89 library is only required for compiling and are not included in the 90 90 distribution. The web server/servlet container should already have 91 these API installed (that' wwhat makes it a servlet container).91 these API installed (that's what makes it a servlet container). 92 92 93 93 More info : http://java.sun.com/products/servlet/index.jsp … … 103 103 104 104 More info : http://xml.apache.org/xerces2-j/index.html 105 Version : 2. 6.2105 Version : 2.8.0 106 106 License : Apache Software License (xerces.license.txt) 107 Jar files : xerces-2. 6.2.jar, xml-apis.jar107 Jar files : xerces-2.8.0.jar, xml-apis.jar 108 108 109 109 … … 114 114 115 115 More info : http://www.mysql.com/products/connector/j/ 116 Version : 3.1.1 2116 Version : 3.1.13 117 117 License : GPL (gpl.license.txt) 118 Jar files : mysql-connector-java-3.1.1 2-bin.jar118 Jar files : mysql-connector-java-3.1.13-bin.jar 119 119 120 120 … … 125 125 126 126 More info : http://jdbc.postgresql.org/ 127 Version : 8. 0.313127 Version : 8.1.407 128 128 License : BSD License (postgres.license.txt) 129 Jar files : postgresql-8. 0-313.jdbc3.jar129 Jar files : postgresql-8.1-407.jdbc3.jar 130 130 131 131 … … 150 150 151 151 More info : http://www.singularsys.com/jep/ 152 Version : 2. 3.0152 Version : 2.4.0 153 153 License : GPL (gpl.license.txt) 154 Jar files : jep-2. 3.0.jar154 Jar files : jep-2.4.0.jar 155 155 156 156 … … 160 160 161 161 More info : http://www.jfree.org/ 162 Version : 1.0. 0162 Version : 1.0.1 163 163 License : LGPL (lgpl.txt) 164 Jar files : jfreechart-1.0. 0.jar jcommon-1.0.0.jar164 Jar files : jfreechart-1.0.1.jar jcommon-1.0.0.jar 165 165 166 166 -
trunk/src/clients/web/net/sf/basedb/clients/web/servlet/PlotServlet.java
r2327 r2474 727 727 ------------------------------------------- 728 728 */ 729 public intgetTotalCount()729 public long getTotalCount() 730 730 { 731 731 return child.getTotalCount(); -
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/table/Navigator.java
r2304 r2474 224 224 this.totalRows = totalRows; 225 225 } 226 public void setTotalrows(long totalRows) 227 { 228 this.totalRows = (int)totalRows; 229 } 226 230 public int getTotalrows() 227 231 { -
trunk/src/core/net/sf/basedb/core/AbstractEntityQuery.java
r2404 r2474 248 248 lastCountDc = null; 249 249 } 250 public intcount(DbControl dc)250 public long count(DbControl dc) 251 251 throws BaseException 252 252 { 253 return HibernateUtil.loadData( Integer.class, getCountHqlQuery(dc));253 return HibernateUtil.loadData(Long.class, getCountHqlQuery(dc)); 254 254 } 255 255 -
trunk/src/core/net/sf/basedb/core/AbstractResultList.java
r2304 r2474 43 43 { 44 44 45 private final inttotalCount;45 private final long totalCount; 46 46 47 AbstractResultList( inttotalCount)47 AbstractResultList(long totalCount) 48 48 { 49 49 this.totalCount = totalCount; … … 54 54 ------------------------------------------- 55 55 */ 56 public intgetTotalCount()56 public long getTotalCount() 57 57 { 58 58 return totalCount; -
trunk/src/core/net/sf/basedb/core/AbstractSqlQuery.java
r2304 r2474 96 96 return QueryType.SQL; 97 97 } 98 public intcount(DbControl dc)98 public long count(DbControl dc) 99 99 throws BaseException 100 100 { … … 137 137 throws BaseException 138 138 { 139 inttotalCount = -1;139 long totalCount = -1; 140 140 141 141 // Reset temporary query elements -
trunk/src/core/net/sf/basedb/core/AnnotationType.java
r2382 r2474 171 171 */ 172 172 query.setEntity("annotationType", this.getData()); 173 used = HibernateUtil.loadData( Integer.class, query) > 0;173 used = HibernateUtil.loadData(Long.class, query) > 0; 174 174 } 175 175 if (!used) … … 183 183 */ 184 184 query.setEntity("annotationType", this.getData()); 185 used = HibernateUtil.loadData( Integer.class, query) > 0;185 used = HibernateUtil.loadData(Long.class, query) > 0; 186 186 } 187 187 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/ArrayBatch.java
r2382 r2474 150 150 */ 151 151 query.setEntity("arrayBatch", this.getData()); 152 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();152 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 153 153 } 154 154 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/ArrayDesign.java
r2449 r2474 171 171 */ 172 172 query.setEntity("arrayDesign", this.getData()); 173 int count = HibernateUtil.loadData(Integer.class, query);173 long count = HibernateUtil.loadData(Long.class, query); 174 174 if (count == 0) 175 175 { … … 181 181 */ 182 182 query.setEntity("arrayDesign", this.getData()); 183 count = HibernateUtil.loadData( Integer.class, query);183 count = HibernateUtil.loadData(Long.class, query); 184 184 } 185 185 return count > 0 || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/BasicItem.java
r2382 r2474 215 215 query.setInteger("toId", this.getId()); 216 216 query.setInteger("toType", this.getType().getValue()); 217 return HibernateUtil.loadData( Integer.class, query) > 0;217 return HibernateUtil.loadData(Long.class, query) > 0; 218 218 } 219 219 -
trunk/src/core/net/sf/basedb/core/BioSource.java
r2404 r2474 176 176 @return The number of samples 177 177 */ 178 public intcountSamples()178 public long countSamples() 179 179 throws BaseException 180 180 { … … 187 187 */ 188 188 query.setEntity("biosource", this.getData()); 189 return HibernateUtil.loadData( Integer.class, query);189 return HibernateUtil.loadData(Long.class, query); 190 190 } 191 191 -
trunk/src/core/net/sf/basedb/core/DataQuery.java
r2304 r2474 79 79 { 80 80 enableFilters(dc); 81 inttotalCount = -1;81 long totalCount = -1; 82 82 83 83 // Load the total count if it is requested 84 84 if (isReturningTotalCount()) 85 85 { 86 totalCount = HibernateUtil.loadData( Integer.class, getCountHqlQuery(dc));86 totalCount = HibernateUtil.loadData(Long.class, getCountHqlQuery(dc)); 87 87 } 88 88 -
trunk/src/core/net/sf/basedb/core/DataResultIterator.java
r2304 r2474 59 59 The total number of items. 60 60 */ 61 private final inttotalCount;61 private final long totalCount; 62 62 63 63 /** … … 71 71 private final Item itemType; 72 72 73 DataResultIterator(ScrollIterator<I> data, DbControl dc, Class<I> dataClass, inttotalCount)73 DataResultIterator(ScrollIterator<I> data, DbControl dc, Class<I> dataClass, long totalCount) 74 74 { 75 75 assert data != null : "data == null"; … … 86 86 --------------------------------- 87 87 */ 88 public intgetTotalCount()88 public long getTotalCount() 89 89 { 90 90 return totalCount; -
trunk/src/core/net/sf/basedb/core/Directory.java
r2451 r2474 419 419 throws BaseException 420 420 { 421 intcount;421 long count; 422 422 org.hibernate.Session session = getDbControl().getHibernateSession(); 423 423 org.hibernate.Query query = HibernateUtil.getPredefinedQuery(session, "COUNT_FILES_IN_DIRECTORY"); … … 428 428 */ 429 429 query.setEntity("directory", getData()); 430 count = HibernateUtil.loadData( Integer.class, query);430 count = HibernateUtil.loadData(Long.class, query); 431 431 if (count == 0) 432 432 { … … 438 438 */ 439 439 query.setEntity("directory", getData()); 440 count = HibernateUtil.loadData( Integer.class, query);440 count = HibernateUtil.loadData(Long.class, query); 441 441 } 442 442 if (count == 0) … … 449 449 */ 450 450 query.setEntity("directory", getData()); 451 count = HibernateUtil.loadData( Integer.class, query);451 count = HibernateUtil.loadData(Long.class, query); 452 452 } 453 453 return count > 0 || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/DynamicResultIterator.java
r2304 r2474 52 52 The total number of items. 53 53 */ 54 private final inttotalCount;54 private final long totalCount; 55 55 56 56 private final int limit; … … 72 72 query 73 73 */ 74 DynamicResultIterator(ResultSet results, inttotalCount, int limit)74 DynamicResultIterator(ResultSet results, long totalCount, int limit) 75 75 { 76 76 this.results = results; … … 86 86 --------------------------------- 87 87 */ 88 public intgetTotalCount()88 public long getTotalCount() 89 89 { 90 90 return totalCount; -
trunk/src/core/net/sf/basedb/core/ExtraValueType.java
r2382 r2474 217 217 */ 218 218 query.setEntity("extraValueType", this.getData()); 219 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();219 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 220 220 } 221 221 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/Extract.java
r2464 r2474 232 232 } 233 233 234 public intcountLabeledExtracts()234 public long countLabeledExtracts() 235 235 throws BaseException 236 236 { … … 243 243 */ 244 244 query.setEntity("extract", this.getData()); 245 return HibernateUtil.loadData( Integer.class, query);245 return HibernateUtil.loadData(Long.class, query); 246 246 } 247 247 } -
trunk/src/core/net/sf/basedb/core/File.java
r2451 r2474 386 386 */ 387 387 query.setEntity("file", this.getData()); 388 used = HibernateUtil.loadData( Integer.class, query) > 0;388 used = HibernateUtil.loadData(Long.class, query) > 0; 389 389 } 390 390 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/FileType.java
r2382 r2474 227 227 */ 228 228 query.setEntity("filetype", this.getData()); 229 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();229 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 230 230 } 231 231 void initPermissions(int granted, int denied) -
trunk/src/core/net/sf/basedb/core/Group.java
r2382 r2474 223 223 */ 224 224 query.setEntity("theGroup", this.getData()); 225 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();225 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 226 226 } 227 227 -
trunk/src/core/net/sf/basedb/core/Hardware.java
r2382 r2474 153 153 */ 154 154 q.setEntity("scanner", this.getData()); 155 used = HibernateUtil.loadData( Integer.class, q) > 0;155 used = HibernateUtil.loadData(Long.class, q) > 0; 156 156 } 157 157 if (!used) … … 164 164 */ 165 165 q.setEntity("printrobot", this.getData()); 166 used = HibernateUtil.loadData( Integer.class, q) > 0;166 used = HibernateUtil.loadData(Long.class, q) > 0; 167 167 } 168 168 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/HardwareType.java
r2442 r2474 131 131 */ 132 132 query.setEntity("hardwaretype", this.getData()); 133 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();133 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 134 134 } 135 135 /** -
trunk/src/core/net/sf/basedb/core/HibernateUtil.java
r2392 r2474 175 175 { 176 176 isInitialised = false; 177 if (sf != null && !sf.isClosed()) sf.close(); 177 178 sf = null; 178 179 cfg = null; -
trunk/src/core/net/sf/basedb/core/Hybridization.java
r2411 r2474 261 261 @return The number of scans 262 262 */ 263 public intcountScans()263 public long countScans() 264 264 throws BaseException 265 265 { … … 272 272 */ 273 273 query.setEntity("hybridization", this.getData()); 274 return HibernateUtil.loadData( Integer.class, query);274 return HibernateUtil.loadData(Long.class, query); 275 275 } 276 276 -
trunk/src/core/net/sf/basedb/core/ItemQuery.java
r2304 r2474 91 91 92 92 List<? extends BasicData> result = HibernateUtil.loadList(dataClass, getMainHqlQuery(dc)); 93 inttotalCount = result.size();93 long totalCount = result.size(); 94 94 95 95 // Load the total count if needed and requested 96 96 if ((getFirstResult() >= 0 || getMaxResults() > 0) && isReturningTotalCount()) 97 97 { 98 totalCount = HibernateUtil.loadData( Integer.class, getCountHqlQuery(dc));98 totalCount = HibernateUtil.loadData(Long.class, getCountHqlQuery(dc)); 99 99 } 100 100 … … 113 113 { 114 114 enableFilters(dc); 115 inttotalCount = -1;115 long totalCount = -1; 116 116 117 117 // Load the total count if it is requested 118 118 if (isReturningTotalCount()) 119 119 { 120 totalCount = HibernateUtil.loadData( Integer.class, getCountHqlQuery(dc));120 totalCount = HibernateUtil.loadData(Long.class, getCountHqlQuery(dc)); 121 121 } 122 122 -
trunk/src/core/net/sf/basedb/core/ItemResultIterator.java
r2304 r2474 56 56 The total number of items. 57 57 */ 58 private final inttotalCount;58 private final long totalCount; 59 59 60 60 /** … … 63 63 private final Item itemType; 64 64 65 ItemResultIterator(ScrollIterator<? extends BasicData> data, DbControl dc, Class<I> itemClass, inttotalCount)65 ItemResultIterator(ScrollIterator<? extends BasicData> data, DbControl dc, Class<I> itemClass, long totalCount) 66 66 { 67 67 assert data != null : "data == null"; … … 79 79 --------------------------------- 80 80 */ 81 public intgetTotalCount()81 public long getTotalCount() 82 82 { 83 83 return totalCount; -
trunk/src/core/net/sf/basedb/core/ItemResultList.java
r2304 r2474 62 62 private final Item itemType; 63 63 64 ItemResultList(List<? extends BasicData> data, DbControl dc, Class<I> itemClass, inttotalCount)64 ItemResultList(List<? extends BasicData> data, DbControl dc, Class<I> itemClass, long totalCount) 65 65 { 66 66 super(totalCount); -
trunk/src/core/net/sf/basedb/core/Job.java
r2470 r2474 231 231 */ 232 232 query.setEntity("job", this.getData()); 233 used = HibernateUtil.loadData( Integer.class, query) > 0;233 used = HibernateUtil.loadData(Long.class, query) > 0; 234 234 } 235 235 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/Label.java
r2382 r2474 128 128 */ 129 129 query.setEntity("label", this.getData()); 130 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();130 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 131 131 } 132 132 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/MeasuredBioMaterial.java
r2382 r2474 76 76 */ 77 77 query.setEntity("bioMaterial", this.getData()); 78 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();78 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 79 79 } 80 80 /** -
trunk/src/core/net/sf/basedb/core/Message.java
r2382 r2474 102 102 @throws BaseException If there is an error 103 103 */ 104 public static intcountUnreadMessages(DbControl dc, User user)104 public static long countUnreadMessages(DbControl dc, User user) 105 105 throws BaseException 106 106 { … … 114 114 query.setInteger("user", user == null ? dc.getSessionControl().getLoggedInUserId() : user.getId()); 115 115 query.setCacheable(true); 116 return HibernateUtil.loadData( Integer.class, query);116 return HibernateUtil.loadData(Long.class, query); 117 117 } 118 118 -
trunk/src/core/net/sf/basedb/core/Plate.java
r2382 r2474 179 179 */ 180 180 query.setEntity("plate", this.getData()); 181 boolean used = HibernateUtil.loadData( Integer.class, query) > 0;181 boolean used = HibernateUtil.loadData(Long.class, query) > 0; 182 182 if (!used) 183 183 { … … 190 190 */ 191 191 query.setEntity("plate", this.getData()); 192 used = HibernateUtil.loadData( Integer.class, query) > 0;192 used = HibernateUtil.loadData(Long.class, query) > 0; 193 193 } 194 194 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/PlateEventType.java
r2382 r2474 208 208 */ 209 209 query.setEntity("plateEventType", this.getData()); 210 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();210 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 211 211 } 212 212 /* -
trunk/src/core/net/sf/basedb/core/PlateGeometry.java
r2382 r2474 185 185 */ 186 186 query.setEntity("plateGeometry", this.getData()); 187 boolean used = HibernateUtil.loadData( Integer.class, query) > 0;187 boolean used = HibernateUtil.loadData(Long.class, query) > 0; 188 188 if (!used) 189 189 { … … 196 196 */ 197 197 query.setEntity("plateGeometry", this.getData()); 198 used = HibernateUtil.loadData( Integer.class, query) > 0;198 used = HibernateUtil.loadData(Long.class, query) > 0; 199 199 } 200 200 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/PlateMapping.java
r2382 r2474 165 165 */ 166 166 query.setEntity("plateMapping", this.getData()); 167 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();167 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 168 168 } 169 169 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/PlateType.java
r2382 r2474 133 133 */ 134 134 query.setEntity("plateType", this.getData()); 135 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();135 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 136 136 } 137 137 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/PluginConfiguration.java
r2382 r2474 199 199 */ 200 200 query.setEntity("pluginConfiguration", this.getData()); 201 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();201 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 202 202 } 203 203 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/PluginDefinition.java
r2382 r2474 272 272 { 273 273 Object[] o = (Object[])cnt; 274 result.put(Plugin.MainType.fromValue((Integer)o[0]), ( Integer)o[1]);274 result.put(Plugin.MainType.fromValue((Integer)o[0]), ((Long)o[1]).intValue()); 275 275 } 276 276 return result; … … 326 326 */ 327 327 query.setEntity("pluginDefinition", this.getData()); 328 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();328 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 329 329 } 330 330 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/Protocol.java
r2382 r2474 162 162 */ 163 163 query.setEntity("protocol", this.getData()); 164 used = HibernateUtil.loadData( Integer.class, query) > 0;164 used = HibernateUtil.loadData(Long.class, query) > 0; 165 165 } 166 166 if (!used) … … 173 173 */ 174 174 query.setEntity("protocol", this.getData()); 175 used = HibernateUtil.loadData( Integer.class, query) > 0;175 used = HibernateUtil.loadData(Long.class, query) > 0; 176 176 } 177 177 if (!used) … … 184 184 */ 185 185 query.setEntity("protocol", this.getData()); 186 used = HibernateUtil.loadData( Integer.class, query) > 0;186 used = HibernateUtil.loadData(Long.class, query) > 0; 187 187 } 188 188 if (!used) … … 195 195 */ 196 196 query.setEntity("protocol", this.getData()); 197 used = HibernateUtil.loadData( Integer.class, query) > 0;197 used = HibernateUtil.loadData(Long.class, query) > 0; 198 198 } 199 199 if (!used) … … 206 206 */ 207 207 query.setEntity("protocol", this.getData()); 208 used = HibernateUtil.loadData( Integer.class, query) > 0;208 used = HibernateUtil.loadData(Long.class, query) > 0; 209 209 } 210 210 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/ProtocolType.java
r2441 r2474 244 244 */ 245 245 query.setEntity("protocolType", this.getData()); 246 boolean used = HibernateUtil.loadData( Integer.class, query) > 0;246 boolean used = HibernateUtil.loadData(Long.class, query) > 0; 247 247 if (!used) 248 248 { … … 254 254 */ 255 255 query.setEntity("protocolType", this.getData()); 256 used = HibernateUtil.loadData( Integer.class, query) > 0;256 used = HibernateUtil.loadData(Long.class, query) > 0; 257 257 } 258 258 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/Quota.java
r2382 r2474 254 254 */ 255 255 query.setEntity("quota", this.getData()); 256 used = HibernateUtil.loadData( Integer.class, query) > 0;256 used = HibernateUtil.loadData(Long.class, query) > 0; 257 257 if (!used) 258 258 { … … 264 264 */ 265 265 query.setEntity("quota", this.getData()); 266 used = HibernateUtil.loadData( Integer.class, query) > 0;266 used = HibernateUtil.loadData(Long.class, query) > 0; 267 267 } 268 268 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/RawBioAssay.java
r2420 r2474 218 218 */ 219 219 query.setEntity("rawBioAssay", this.getData()); 220 boolean used = HibernateUtil.loadData( Integer.class, query) > 0;220 boolean used = HibernateUtil.loadData(Long.class, query) > 0; 221 221 if (!used) 222 222 { … … 229 229 */ 230 230 query.setEntity("rawBioAssay", this.getData()); 231 used = HibernateUtil.loadData( Integer.class, query) > 0;231 used = HibernateUtil.loadData(Long.class, query) > 0; 232 232 } 233 233 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/RawDataBatcher.java
r2459 r2474 161 161 if (arrayDesign != null && arrayDesign.getHasFeatures()) 162 162 { 163 preloaded = new HashMap<FeatureCoordinate, FeatureData>( rawBioAssay.getArrayDesign().getFeatures().count(dc));163 preloaded = new HashMap<FeatureCoordinate, FeatureData>((int)rawBioAssay.getArrayDesign().getFeatures().count(dc)); 164 164 org.hibernate.Query preloadFeatures = HibernateUtil.getPredefinedQuery(dc.getHibernateSession(), "PRELOAD_FEATURES"); 165 165 /* -
trunk/src/core/net/sf/basedb/core/ReporterScoreQuery.java
r2302 r2474 57 57 { 58 58 enableFilters(dc); 59 inttotalCount = -1;59 long totalCount = -1; 60 60 61 61 // Load the total count if it is requested 62 62 if (isReturningTotalCount()) 63 63 { 64 totalCount = HibernateUtil.loadData( Integer.class, getCountHqlQuery(dc));64 totalCount = HibernateUtil.loadData(Long.class, getCountHqlQuery(dc)); 65 65 } 66 66 -
trunk/src/core/net/sf/basedb/core/ReporterScoreResultIterator.java
r2150 r2474 53 53 The total number of items. 54 54 */ 55 private final inttotalCount;55 private final long totalCount; 56 56 57 57 /** … … 60 60 private final Item itemType; 61 61 62 ReporterScoreResultIterator(ScrollIterator<ReporterListScoreData> data, DbControl dc, inttotalCount)62 ReporterScoreResultIterator(ScrollIterator<ReporterListScoreData> data, DbControl dc, long totalCount) 63 63 { 64 64 assert data != null : "data == null"; … … 74 74 --------------------------------- 75 75 */ 76 public intgetTotalCount()76 public long getTotalCount() 77 77 { 78 78 return totalCount; -
trunk/src/core/net/sf/basedb/core/ReporterType.java
r2382 r2474 182 182 */ 183 183 query.setEntity("reporterType", this.getData()); 184 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();184 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 185 185 } 186 186 -
trunk/src/core/net/sf/basedb/core/Sample.java
r2421 r2474 235 235 @return The number of extracts 236 236 */ 237 public intcountExtracts()237 public long countExtracts() 238 238 throws BaseException 239 239 { … … 246 246 */ 247 247 query.setEntity("sample", this.getData()); 248 return HibernateUtil.loadData( Integer.class, query);248 return HibernateUtil.loadData(Long.class, query); 249 249 } 250 250 } -
trunk/src/core/net/sf/basedb/core/Scan.java
r2413 r2474 306 306 @return The number of raw bioassays 307 307 */ 308 public intcountRawBioAssays()308 public long countRawBioAssays() 309 309 throws BaseException 310 310 { … … 317 317 */ 318 318 query.setEntity("scan", this.getData()); 319 return HibernateUtil.loadData( Integer.class, query);319 return HibernateUtil.loadData(Long.class, query); 320 320 } 321 321 … … 348 348 @return The number of images 349 349 */ 350 public intcountImages()350 public long countImages() 351 351 throws BaseException 352 352 { … … 359 359 */ 360 360 query.setEntity("scan", this.getData()); 361 return HibernateUtil.loadData( Integer.class, query);361 return HibernateUtil.loadData(Long.class, query); 362 362 } 363 363 -
trunk/src/core/net/sf/basedb/core/Software.java
r2382 r2474 145 145 */ 146 146 query.setEntity("software", this.getData()); 147 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();147 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 148 148 } 149 149 // ------------------------------------------- -
trunk/src/core/net/sf/basedb/core/SoftwareType.java
r2442 r2474 175 175 */ 176 176 query.setEntity("softwaretype", this.getData()); 177 return HibernateUtil.loadData( Integer.class, query) > 0 || super.isUsed();177 return HibernateUtil.loadData(Long.class, query) > 0 || super.isUsed(); 178 178 } 179 179 -
trunk/src/core/net/sf/basedb/core/UnmodifiableResultList.java
r2218 r2474 40 40 implements ResultList<T> 41 41 { 42 private final inttotalCount;42 private final long totalCount; 43 43 44 public UnmodifiableResultList(List<T> items, inttotalCount)44 public UnmodifiableResultList(List<T> items, long totalCount) 45 45 { 46 46 super(items); … … 52 52 ------------------------------------------- 53 53 */ 54 public intgetTotalCount()54 public long getTotalCount() 55 55 { 56 56 return totalCount; -
trunk/src/core/net/sf/basedb/core/Well.java
r2382 r2474 180 180 */ 181 181 query.setEntity("well", this.getData()); 182 boolean used = HibernateUtil.loadData( Integer.class, query) > 0;182 boolean used = HibernateUtil.loadData(Long.class, query) > 0; 183 183 if (!used) 184 184 { … … 190 190 */ 191 191 query.setEntity("well", this.getData()); 192 used = HibernateUtil.loadData( Integer.class, query) > 0;192 used = HibernateUtil.loadData(Long.class, query) > 0; 193 193 } 194 194 return used || super.isUsed(); -
trunk/src/core/net/sf/basedb/core/query/Query.java
r2304 r2474 325 325 @throws BaseException If there is an error 326 326 */ 327 public intcount(DbControl dc)327 public long count(DbControl dc) 328 328 throws BaseException; 329 329 -
trunk/src/core/net/sf/basedb/core/query/QueryResult.java
r2304 r2474 44 44 @see Query#setReturnTotalCount(boolean) 45 45 */ 46 public intgetTotalCount();46 public long getTotalCount(); 47 47 } -
trunk/src/core/net/sf/basedb/util/jep/ChannelFunction.java
r2304 r2474 142 142 this.numParameters = n; 143 143 } 144 public boolean checkNumberOfParameters(int n) 145 { 146 return n == 1; 147 } 144 148 @SuppressWarnings({"unchecked"}) 145 149 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/InReporterListFunction.java
r2399 r2474 116 116 this.numParameters = n; 117 117 } 118 public boolean checkNumberOfParameters(int n) 119 { 120 return n == 1; 121 } 118 122 @SuppressWarnings({"unchecked"}) 119 123 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/Log2Function.java
r2317 r2474 120 120 public void setCurNumberOfParameters(int n) 121 121 {} 122 122 public boolean checkNumberOfParameters(int n) 123 { 124 return n == 1; 125 } 123 126 @SuppressWarnings({"unchecked"}) 124 127 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/MeanFunction.java
r2304 r2474 126 126 this.numParameters = n; 127 127 } 128 public boolean checkNumberOfParameters(int n) 129 { 130 return n == 1; 131 } 128 132 @SuppressWarnings({"unchecked"}) 129 133 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/NotInReporterListFunction.java
r2399 r2474 116 116 this.numParameters = n; 117 117 } 118 public boolean checkNumberOfParameters(int n) 119 { 120 return n == 1; 121 } 118 122 @SuppressWarnings({"unchecked"}) 119 123 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/RawFunction.java
r2304 r2474 151 151 this.numParameters = n; 152 152 } 153 public boolean checkNumberOfParameters(int n) 154 { 155 return n == 1; 156 } 153 157 @SuppressWarnings({"unchecked"}) 154 158 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/ReporterFunction.java
r2304 r2474 145 145 this.numParameters = n; 146 146 } 147 public boolean checkNumberOfParameters(int n) 148 { 149 return n == 1; 150 } 147 151 @SuppressWarnings({"unchecked"}) 148 152 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/jep/ScoreFunction.java
r2399 r2474 130 130 this.numParameters = n; 131 131 } 132 public boolean checkNumberOfParameters(int n) 133 { 134 return n == 1; 135 } 132 136 @SuppressWarnings({"unchecked"}) 133 137 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/parser/ColFunction.java
r2317 r2474 89 89 public void setCurNumberOfParameters(int n) 90 90 {} 91 91 public boolean checkNumberOfParameters(int n) 92 { 93 return n == 1; 94 } 92 95 @SuppressWarnings({"unchecked"}) 93 96 public void run(Stack stack) -
trunk/src/core/net/sf/basedb/util/plot/HistogramPlot.java
r2327 r2474 117 117 { 118 118 final boolean isCount = yAggregate == YAggregate.COUNT; 119 float[] xValues = new float[ data.getTotalCount()];120 float[] yValues = isCount ? null : new float[ data.getTotalCount()];119 float[] xValues = new float[(int)data.getTotalCount()]; 120 float[] yValues = isCount ? null : new float[(int)data.getTotalCount()]; 121 121 int i = 0; 122 122 … … 178 178 Map<Integer, TempSeries> series = new HashMap<Integer, TempSeries>(annotations.size()); 179 179 List<TempSeries> tempSeries = new ArrayList<TempSeries>(annotations.size()); 180 int meanCount = data.getTotalCount() / annotations.size();180 int meanCount = (int)(data.getTotalCount() / annotations.size()); 181 181 for (PlotAnnotation pa : annotations) 182 182 { -
trunk/src/install/includes
r2341 r2474 45 45 CP=$CP:$WEBINF/lib/commons-logging-1.0.4.jar 46 46 CP=$CP:$WEBINF/lib/dom4j-1.6.1.jar 47 CP=$CP:$WEBINF/lib/ehcache-1. 1.jar47 CP=$CP:$WEBINF/lib/ehcache-1.2.jar 48 48 CP=$CP:$WEBINF/lib/jta.jar 49 CP=$CP:$WEBINF/lib/antlr-2.7.6 rc1.jar49 CP=$CP:$WEBINF/lib/antlr-2.7.6.jar 50 50 51 51 # Log4j logging system (also used by Hibernate) 52 CP=$CP:$WEBINF/lib/log4j-1.2.1 1.jar52 CP=$CP:$WEBINF/lib/log4j-1.2.13.jar 53 53 54 54 # C3P0 Connection pool manager … … 56 56 57 57 # MySQL JDBC driver 58 CP=$CP:$WEBINF/lib/mysql-connector-java-3.1.1 2-bin.jar58 CP=$CP:$WEBINF/lib/mysql-connector-java-3.1.13-bin.jar 59 59 60 60 # Postgres JDBC driver 61 CP=$CP:$WEBINF/lib/postgresql-8.0-313.jdbc3.jar 62 63 # Oracle JDBC driver (experimental) 64 CP=$CP:$WEBINF/lib/ojdbc14.jar 61 CP=$CP:$WEBINF/lib/postgresql-8.1-407.jdbc3.jar 65 62 66 63 # JDOM and Xerces XML parser … … 68 65 CP=$CP:$WEBINF/lib/jaxen-1.1-beta-7.jar 69 66 CP=$CP:$WEBINF/lib/saxpath.jar 70 CP=$CP:$WEBINF/lib/xerces-2. 6.2.jar67 CP=$CP:$WEBINF/lib/xerces-2.8.0.jar 71 68 CP=$CP:$WEBINF/lib/xml-apis.jar 72 69 … … 77 74 78 75 # Java Math Expression Parser 79 CP=$CP:$WEBINF/lib/jep-2. 3.0.jar76 CP=$CP:$WEBINF/lib/jep-2.4.0.jar 80 77 81 78 # JFreeChart 82 CP=$CP:$WEBINF/lib/jfreechart-1.0. 0.jar79 CP=$CP:$WEBINF/lib/jfreechart-1.0.1.jar 83 80 CP=$CP:$WEBINF/lib/jcommon-1.0.0.jar 84 81 -
trunk/src/install/set_classpath.bat
r2341 r2474 44 44 SET CP=%CP%;%WEBINF%/lib/commons-logging-1.0.4.jar 45 45 SET CP=%CP%;%WEBINF%/lib/dom4j-1.6.1.jar 46 SET CP=%CP%;%WEBINF%/lib/ehcache-1. 1.jar46 SET CP=%CP%;%WEBINF%/lib/ehcache-1.2.jar 47 47 SET CP=%CP%;%WEBINF%/lib/jta.jar 48 SET CP=%CP%;%WEBINF%/lib/antlr-2.7.6 rc1.jar48 SET CP=%CP%;%WEBINF%/lib/antlr-2.7.6.jar 49 49 50 50 REM Log4j (also used by Hibernate) 51 SET CP=%CP%;%WEBINF%/lib/log4j-1.2.1 1.jar51 SET CP=%CP%;%WEBINF%/lib/log4j-1.2.13.jar 52 52 53 53 REM C3P0 Connection pool manager … … 55 55 56 56 REM MySQL JDBC driver 57 SET CP=%CP%;%WEBINF%/lib/mysql-connector-java-3.1.1 2-bin.jar57 SET CP=%CP%;%WEBINF%/lib/mysql-connector-java-3.1.13-bin.jar 58 58 59 59 REM Postgres JDBC driver 60 SET CP=%CP%;%WEBINF%/lib/postgresql-8.0-313.jdbc3.jar 61 62 REM Oracle JDBC driver (experimental) 63 SET CP=%CP%;%WEBINF%/lib/ojdbc14.jar 60 SET CP=%CP%;%WEBINF%/lib/postgresql-8.1-407.jdbc3.jar 64 61 65 62 REM JDOM and Xerces XML parser … … 67 64 SET CP=%CP%;%WEBINF%/lib/jaxen-1.1-beta-7.jar 68 65 SET CP=%CP%;%WEBINF%/lib/saxpath.jar 69 SET CP=%CP%;%WEBINF%/lib/xerces-2. 6.2.jar66 SET CP=%CP%;%WEBINF%/lib/xerces-2.8.0.jar 70 67 SET CP=%CP%;%WEBINF%/lib/xml-apis.jar 71 68 … … 76 73 77 74 REM Java Math Expression Parser 78 SET CP=%CP%;%WEBINF%/lib/jep-2. 3.0.jar75 SET CP=%CP%;%WEBINF%/lib/jep-2.4.0.jar 79 76 80 77 REM JFreeChart 81 SET CP=%CP%:%WEBINF%/lib/jfreechart-1.0. 0.jar78 SET CP=%CP%:%WEBINF%/lib/jfreechart-1.0.1.jar 82 79 SET CP=%CP%:%WEBINF%/lib/jcommon-1.0.0.jar 83 80 -
trunk/src/plugins/core/net/sf/basedb/plugins/HelpExporter.java
r2439 r2474 358 358 { 359 359 360 intnrOfItem = query.count(dc);360 long nrOfItem = query.count(dc); 361 361 if (nrOfItem > 0) 362 362 { -
trunk/src/plugins/core/net/sf/basedb/plugins/LowessNormalization.java
r2462 r2474 235 235 query = bioAssaySet.getSpotData(); 236 236 query.restrict(intensityRestriction); 237 intnumSpots = query.count(dc);237 long numSpots = query.count(dc); 238 238 int normalizedSpots = 0; 239 if (progress != null) progress.display( normalizedSpots / numSpots * 100, normalizedSpots + " spots normalized");239 if (progress != null) progress.display((int)(normalizedSpots / numSpots * 100), normalizedSpots + " spots normalized"); 240 240 241 241 List<BioAssay> assays = bioAssaySet.getBioAssays().list(dc); … … 310 310 311 311 normalizedSpots += smoothCurve.size(); 312 if (progress != null) progress.display(( normalizedSpots * 100) / numSpots, normalizedSpots + " spots normalized");312 if (progress != null) progress.display((int)((normalizedSpots * 100) / numSpots), normalizedSpots + " spots normalized"); 313 313 } 314 314 } -
trunk/src/plugins/core/net/sf/basedb/plugins/MedianRatioNormalization.java
r2462 r2474 210 210 query = bioAssaySet.getSpotData(); 211 211 query.restrict(intensityRestriction); 212 intnumSpots = query.count(dc);212 long numSpots = query.count(dc); 213 213 int normalizedSpots = 0; 214 progress.display( normalizedSpots / numSpots * 100, normalizedSpots + " spots normalized");214 progress.display((int)(normalizedSpots / numSpots * 100), normalizedSpots + " spots normalized"); 215 215 216 216 List<BioAssay> assays = bioAssaySet.getBioAssays().list(dc); … … 245 245 query.order(Orders.asc(Expressions.selected(ratio))); 246 246 247 int count = query.count(dc);247 int count = (int)query.count(dc); 248 248 if (count <= 0) continue; 249 249 int lowCount = (int) Math.floor(count * lowExclude / 100); … … 297 297 batcher.insert(r.getShort(column), r.getInt(position), r.getFloat(ch1), r.getFloat(ch2)); 298 298 normalizedSpots++; 299 progress.display(( normalizedSpots * 100) / numSpots, normalizedSpots + " spots normalized");299 progress.display((int)(normalizedSpots * 100 / numSpots), normalizedSpots + " spots normalized"); 300 300 } 301 301 } -
trunk/src/test/run.bat
r2340 r2474 38 38 SET CP=%CP%;../../lib/dist/commons-logging-1.0.4.jar 39 39 SET CP=%CP%;../../lib/dist/dom4j-1.6.1.jar 40 SET CP=%CP%;../../lib/dist/ehcache-1. 1.jar40 SET CP=%CP%;../../lib/dist/ehcache-1.2.jar 41 41 SET CP=%CP%;../../lib/dist/jta.jar 42 SET CP=%CP%;../../lib/dist/antlr-2.7.6 rc1.jar42 SET CP=%CP%;../../lib/dist/antlr-2.7.6.jar 43 43 44 44 REM Log4j (also used by Hibernate) 45 SET CP=%CP%;../../lib/compile/log4j-1.2.1 1.jar45 SET CP=%CP%;../../lib/compile/log4j-1.2.13.jar 46 46 47 47 REM C3P0 Connection pool manager … … 49 49 50 50 REM MySQL JDBC driver 51 SET CP=%CP%;../../lib/dist/mysql-connector-java-3.1.1 2-bin.jar51 SET CP=%CP%;../../lib/dist/mysql-connector-java-3.1.13-bin.jar 52 52 53 53 REM Postgres JDBC driver 54 SET CP=%CP%;../../lib/dist/postgresql-8.0-313.jdbc3.jar 55 56 REM Oracle JDBC driver (experimental) 57 SET CP=%CP%;../../lib/dist/ojdbc14.jar 54 SET CP=%CP%;../../lib/dist/postgresql-8.1-407.jdbc3.jar 58 55 59 56 REM JDOM and Xerces XML parser … … 61 58 SET CP=%CP%;../../lib/dist/jaxen-1.1-beta-7.jar 62 59 SET CP=%CP%;../../lib/dist/saxpath.jar 63 SET CP=%CP%;../../lib/dist/xerces-2. 6.2.jar60 SET CP=%CP%;../../lib/dist/xerces-2.8.0.jar 64 61 SET CP=%CP%;../../lib/dist/xml-apis.jar 65 62 … … 70 67 71 68 REM Java Math Expression Parser 72 SET CP=%CP%;../../lib/compile/jep-2. 3.0.jar69 SET CP=%CP%;../../lib/compile/jep-2.4.0.jar 73 70 74 71 REM JFreeChart 75 SET CP=%CP%:../../lib/compile/jfreechart-1.0. 0.jar72 SET CP=%CP%:../../lib/compile/jfreechart-1.0.1.jar 76 73 SET CP=%CP%:../../lib/compile/jcommon-1.0.0.jar 77 74 -
trunk/src/test/set_classpath.sh
r2340 r2474 39 39 CP=$CP:$LIB_DIST/commons-logging-1.0.4.jar 40 40 CP=$CP:$LIB_DIST/dom4j-1.6.1.jar 41 CP=$CP:$LIB_DIST/ehcache-1. 1.jar41 CP=$CP:$LIB_DIST/ehcache-1.2.jar 42 42 CP=$CP:$LIB_DIST/jta.jar 43 CP=$CP:$LIB_DIST/antlr-2.7.6 rc1.jar43 CP=$CP:$LIB_DIST/antlr-2.7.6.jar 44 44 45 45 # Log4j logging system (also used by Hibernate) 46 CP=$CP:$LIB_COMPILE/log4j-1.2.1 1.jar46 CP=$CP:$LIB_COMPILE/log4j-1.2.13.jar 47 47 48 48 # C3P0 Connection pool manager … … 50 50 51 51 # MySQL JDBC driver 52 CP=$CP:$LIB_DIST/mysql-connector-java-3.1.1 2-bin.jar52 CP=$CP:$LIB_DIST/mysql-connector-java-3.1.13-bin.jar 53 53 54 54 # Postgres JDBC driver 55 CP=$CP:$LIB_DIST/postgresql-8.0-313.jdbc3.jar 56 57 # Oracle JDBC driver (experimental) 58 CP=$CP:$LIB_DIST/ojdbc14.jar 55 CP=$CP:$LIB_DIST/postgresql-8.1-407.jdbc3.jar 59 56 60 57 # JDOM and Xerces XML parser … … 62 59 CP=$CP:$LIB_DIST/jaxen-1.1-beta-7.jar 63 60 CP=$CP:$LIB_DIST/saxpath.jar 64 CP=$CP:$LIB_DIST/xerces-2. 6.2.jar61 CP=$CP:$LIB_DIST/xerces-2.8.0.jar 65 62 CP=$CP:$LIB_DIST/xml-apis.jar 66 63 … … 71 68 72 69 # Java Math Expression Parser 73 CP=$CP:$LIB_COMPILE/jep-2. 3.0.jar70 CP=$CP:$LIB_COMPILE/jep-2.4.0.jar 74 71 75 72 # JFreeChart 76 CP=$CP:$LIB_COMPILE/jfreechart-1.0. 0.jar73 CP=$CP:$LIB_COMPILE/jfreechart-1.0.1.jar 77 74 CP=$CP:$LIB_COMPILE/jcommon-1.0.0.jar 78 75 -
trunk/www/footnote.jsp
r2304 r2474 56 56 dc = sc.newDbControl(); 57 57 } 58 intnumNewMessages = 0;58 long numNewMessages = 0; 59 59 try 60 60 { -
trunk/www/lims/arraybatches/list_batches.jsp
r2449 r2474 479 479 try 480 480 { 481 out.write(slideQuery.count(dc)); 481 %> 482 <%=slideQuery.count(dc)%> 483 <% 482 484 } 483 485 catch (Throwable t) -
trunk/www/lims/arrayslides/edit_slide.jsp
r2456 r2474 84 84 if (currentArrayBatch != null) 85 85 { 86 maxIndex = currentArrayBatch.getArraySlides().count(dc);86 maxIndex = (int)currentArrayBatch.getArraySlides().count(dc); 87 87 } 88 88 } -
trunk/www/lims/platetypes/eventtypes/edit_eventtype.jsp
r2456 r2474 81 81 currentProtocolType = Base.getFirstMatching(dc, ProtocolType.getQuery(), "name", cc.getPropertyFilter("protocolType.name")); 82 82 } 83 maxOrdinal = plateType.getEventTypes().count(dc);83 maxOrdinal = (int)plateType.getEventTypes().count(dc); 84 84 } 85 85 else -
trunk/www/views/experiments/bioassaysets/create_filter.jsp
r2424 r2474 70 70 BioAssaySet bioAssaySet = BioAssaySet.getById(dc, itemId); 71 71 72 intnumBioAssays = bioAssaySet.getBioAssays().count(dc);72 long numBioAssays = bioAssaySet.getBioAssays().count(dc); 73 73 74 74 RawDataType rdt = bioAssaySet.getRawDataType();
Note: See TracChangeset
for help on using the changeset viewer.