Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/query/DefaultQueryExceutor.java @ 1128:81f0a5e66d71
Add module for FLYS artifacts
geo-backend/trunk@1283 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 01 Feb 2011 17:37:09 +0000 |
parents | ebeb56428409 |
children |
comparison
equal
deleted
inserted
replaced
1127:ebeb56428409 | 1128:81f0a5e66d71 |
---|---|
96 ResultSet rs = stmt.executeQuery(queryString); | 96 ResultSet rs = stmt.executeQuery(queryString); |
97 Date end = new Date(); | 97 Date end = new Date(); |
98 log.info("-> Database query took " + | 98 log.info("-> Database query took " + |
99 (end.getTime() - start.getTime()) + " ms."); | 99 (end.getTime() - start.getTime()) + " ms."); |
100 | 100 |
101 cacheable = rs instanceof Uncacheable ? false : true; | 101 cacheable = !(rs instanceof Uncacheable); |
102 | 102 |
103 returnValue = super.createResultCollection(rs); | 103 returnValue = super.createResultCollection(rs); |
104 }else{ | 104 }else{ |
105 log.error("Could not establish Databaseconnection."); | 105 log.error("Could not establish Databaseconnection."); |
106 throw new QueryException("Could not establish Databaseconnection."); | 106 throw new QueryException("Could not establish Databaseconnection."); |