comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/query/QueryExecutorBase.java @ 885:1c3efbd2fc5a

Removes trailing whitespace. geo-backend/trunk@850 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 07:49:16 +0000
parents 3cbf11c67fdc
children 8b442223741c
comparison
equal deleted inserted replaced
884:12f88239fb33 885:1c3efbd2fc5a
27 * Constructor 27 * Constructor
28 */ 28 */
29 public QueryExecutorBase() { 29 public QueryExecutorBase() {
30 super(); 30 super();
31 } 31 }
32 32
33 /** 33 /**
34 * This Method puts the Filtervalues into the Querystring 34 * This Method puts the Filtervalues into the Querystring
35 * @param queryString the Query which should be manipulated 35 * @param queryString the Query which should be manipulated
36 * @param filter the values which should be put into the Query 36 * @param filter the values which should be put into the Query
37 * @return the manipulated Query 37 * @return the manipulated Query
41 for (int i = 0; i < filter.length; i++){ 41 for (int i = 0; i < filter.length; i++){
42 returnValue = returnValue.replaceFirst("[?]", filter[i]); 42 returnValue = returnValue.replaceFirst("[?]", filter[i]);
43 } 43 }
44 return returnValue; 44 return returnValue;
45 } 45 }
46 46
47 /** 47 /**
48 * This Methods converts the ResultSet into an Collection of Result-objects 48 * This Methods converts the ResultSet into an Collection of Result-objects
49 * @param resultSet the ResultSet which should be converted 49 * @param resultSet the ResultSet which should be converted
50 * @return an Collection containing Result-Objects 50 * @return an Collection containing Result-Objects
51 * @throws SQLException 51 * @throws SQLException
52 */ 52 */
53 protected Collection<Result> createResultCollection(ResultSet resultSet) throws SQLException{ 53 protected Collection<Result> createResultCollection(ResultSet resultSet) throws SQLException{
54 Collection<Result> returnValue = new ArrayList<Result>(); 54 Collection<Result> returnValue = new ArrayList<Result>();
55 55
56 ResultDescriptor resultDescriptor = null; 56 ResultDescriptor resultDescriptor = null;
57 int columns = -1; 57 int columns = -1;
58 58
59 List<String> columnNames = null; 59 List<String> columnNames = null;
60 60
66 66
67 for (int i = 1; i <= columns; i++){ 67 for (int i = 1; i <= columns; i++){
68 resultDescriptor.addColumn(rsmd.getColumnName(i), rsmd.getColumnClassName(i)); 68 resultDescriptor.addColumn(rsmd.getColumnName(i), rsmd.getColumnClassName(i));
69 } 69 }
70 } 70 }
71 71
72 Result result = convertResult(resultSet, resultDescriptor); 72 Result result = convertResult(resultSet, resultDescriptor);
73 73
74 returnValue.add(result); 74 returnValue.add(result);
75 } 75 }
76 return returnValue; 76 return returnValue;
77 } 77 }
78 78

http://dive4elements.wald.intevation.org