equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
91 private PropertyChangeSupport propertyChangeSupport; |
91 private PropertyChangeSupport propertyChangeSupport; |
92 |
92 |
93 /** |
93 /** |
94 * The Vector holding the Match Columns |
94 * The Vector holding the Match Columns |
95 */ |
95 */ |
96 private Vector iMatchColumns; |
96 private Vector<Integer> iMatchColumns; |
97 |
97 |
98 /** |
98 /** |
99 * The Vector that will hold the Match Column names. |
99 * The Vector that will hold the Match Column names. |
100 */ |
100 */ |
101 private Vector strMatchColumns; |
101 private Vector<String> strMatchColumns; |
102 |
102 |
103 |
103 |
104 protected transient JdbcRowSetResourceBundle resBundle; |
104 protected transient JdbcRowSetResourceBundle resBundle; |
105 |
105 |
106 /** |
106 /** |
211 sqle.getLocalizedMessage()); |
211 sqle.getLocalizedMessage()); |
212 } |
212 } |
213 |
213 |
214 //Instantiating the vector for MatchColumns |
214 //Instantiating the vector for MatchColumns |
215 |
215 |
216 iMatchColumns = new Vector(10); |
216 iMatchColumns = new Vector<Integer>(10); |
217 for(int i = 0; i < 10 ; i++) { |
217 for(int i = 0; i < 10 ; i++) { |
218 iMatchColumns.add(i,Integer.valueOf(-1)); |
218 iMatchColumns.add(i,Integer.valueOf(-1)); |
219 } |
219 } |
220 |
220 |
221 strMatchColumns = new Vector(10); |
221 strMatchColumns = new Vector<String>(10); |
222 for(int j = 0; j < 10; j++) { |
222 for(int j = 0; j < 10; j++) { |
223 strMatchColumns.add(j,null); |
223 strMatchColumns.add(j,null); |
224 } |
224 } |
225 } |
225 } |
226 |
226 |
284 setEscapeProcessing(true); |
284 setEscapeProcessing(true); |
285 setTypeMap(null); |
285 setTypeMap(null); |
286 |
286 |
287 //Instantiating the vector for MatchColumns |
287 //Instantiating the vector for MatchColumns |
288 |
288 |
289 iMatchColumns = new Vector(10); |
289 iMatchColumns = new Vector<Integer>(10); |
290 for(int i = 0; i < 10 ; i++) { |
290 for(int i = 0; i < 10 ; i++) { |
291 iMatchColumns.add(i,Integer.valueOf(-1)); |
291 iMatchColumns.add(i,Integer.valueOf(-1)); |
292 } |
292 } |
293 |
293 |
294 strMatchColumns = new Vector(10); |
294 strMatchColumns = new Vector<String>(10); |
295 for(int j = 0; j < 10; j++) { |
295 for(int j = 0; j < 10; j++) { |
296 strMatchColumns.add(j,null); |
296 strMatchColumns.add(j,null); |
297 } |
297 } |
298 } |
298 } |
299 |
299 |
371 setEscapeProcessing(true); |
371 setEscapeProcessing(true); |
372 setTypeMap(null); |
372 setTypeMap(null); |
373 |
373 |
374 //Instantiating the vector for MatchColumns |
374 //Instantiating the vector for MatchColumns |
375 |
375 |
376 iMatchColumns = new Vector(10); |
376 iMatchColumns = new Vector<Integer>(10); |
377 for(int i = 0; i < 10 ; i++) { |
377 for(int i = 0; i < 10 ; i++) { |
378 iMatchColumns.add(i,Integer.valueOf(-1)); |
378 iMatchColumns.add(i,Integer.valueOf(-1)); |
379 } |
379 } |
380 |
380 |
381 strMatchColumns = new Vector(10); |
381 strMatchColumns = new Vector<String>(10); |
382 for(int j = 0; j < 10; j++) { |
382 for(int j = 0; j < 10; j++) { |
383 strMatchColumns.add(j,null); |
383 strMatchColumns.add(j,null); |
384 } |
384 } |
385 } |
385 } |
386 |
386 |
461 |
461 |
462 initMetaData(rowsMD, resMD); |
462 initMetaData(rowsMD, resMD); |
463 |
463 |
464 //Instantiating the vector for MatchColumns |
464 //Instantiating the vector for MatchColumns |
465 |
465 |
466 iMatchColumns = new Vector(10); |
466 iMatchColumns = new Vector<Integer>(10); |
467 for(int i = 0; i < 10 ; i++) { |
467 for(int i = 0; i < 10 ; i++) { |
468 iMatchColumns.add(i,Integer.valueOf(-1)); |
468 iMatchColumns.add(i,Integer.valueOf(-1)); |
469 } |
469 } |
470 |
470 |
471 strMatchColumns = new Vector(10); |
471 strMatchColumns = new Vector<String>(10); |
472 for(int j = 0; j < 10; j++) { |
472 for(int j = 0; j < 10; j++) { |
473 strMatchColumns.add(j,null); |
473 strMatchColumns.add(j,null); |
474 } |
474 } |
475 } |
475 } |
476 |
476 |
673 // get a connection |
673 // get a connection |
674 conn = connect(); |
674 conn = connect(); |
675 |
675 |
676 try { |
676 try { |
677 |
677 |
678 Map aMap = getTypeMap(); |
678 Map<String, Class<?>> aMap = getTypeMap(); |
679 if( aMap != null) { |
679 if( aMap != null) { |
680 conn.setTypeMap(aMap); |
680 conn.setTypeMap(aMap); |
681 } |
681 } |
682 ps = conn.prepareStatement(getCommand(),ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); |
682 ps = conn.prepareStatement(getCommand(),ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); |
683 } catch (SQLException ex) { |
683 } catch (SQLException ex) { |