Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/DefaultResult.java @ 382:4af6379ac20b
Changed exception handling if a the value of a column, which is not contained in Result, is requested. Will not throw an exception but return null.
geo-backend/trunk@417 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Dec 2009 10:45:18 +0000 |
parents | 05912f0304ac |
children | da2da7bb1aa1 |
comparison
equal
deleted
inserted
replaced
381:4a874c664123 | 382:4af6379ac20b |
---|---|
106 | 106 |
107 /** | 107 /** |
108 * @see de.intevation.gnv.geobackend.base.Result#getString(java.lang.String) | 108 * @see de.intevation.gnv.geobackend.base.Result#getString(java.lang.String) |
109 */ | 109 */ |
110 public String getString(String columnName) { | 110 public String getString(String columnName) { |
111 return getString(resultDescriptor.getColumnIndex(columnName)); | 111 int idx = resultDescriptor.getColumnIndex(columnName); |
112 | |
113 return idx > -1 ? getString(idx) : null; | |
112 } | 114 } |
113 | 115 |
114 public String getString(int column) { | 116 public String getString(int column) { |
115 | 117 |
116 Object o = values[column]; | 118 Object o = values[column]; |