comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/SDEResultSet.java @ 274:ff1b7967e6b9

General CodecCleanup: Remove deprecated TODOS. Replaced Tabs against whitespaces Organize some Imports geo-backend/trunk@280 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 02 Nov 2009 10:53:06 +0000
parents d43ff60acda4
children 0100ebf6630f
comparison
equal deleted inserted replaced
273:69ddef25e822 274:ff1b7967e6b9
1142 return false; 1142 return false;
1143 } 1143 }
1144 1144
1145 1145
1146 private int getColumnIndex(String columnName) throws SQLException{ 1146 private int getColumnIndex(String columnName) throws SQLException{
1147 //TODO: Es gibt effizentere Lösungen. Hier noch mal über HashMap nachdenken
1148 for (int i = 0 ; i < this.mCols.size();i++){ 1147 for (int i = 0 ; i < this.mCols.size();i++){
1149 if(this.mCols.get(i).getName().equalsIgnoreCase(columnName)){ 1148 if(this.mCols.get(i).getName().equalsIgnoreCase(columnName)){
1150 return i +1; // PLUS 1 da SQL-Cursor 1 nasiert sind 1149 return i +1; // PLUS 1 da SQL-Cursor 1 basiert sind
1151 } 1150 }
1152 } 1151 }
1153 throw new SQLException("Column "+columnName+" does not exist in ResulSet"); 1152 throw new SQLException("Column "+columnName+" does not exist in ResulSet");
1154 } 1153 }
1155 1154

http://dive4elements.wald.intevation.org