@@ -221,46 +221,47 @@ public byte getByte(String columnLabel) throws InvalidResultSetAccessException {
221221 }
222222
223223 /**
224- * @see java.sql.ResultSet#getDate(int, java.util.Calendar )
224+ * @see java.sql.ResultSet#getDate(int)
225225 */
226226 @ Override
227- public Date getDate (int columnIndex , Calendar cal ) throws InvalidResultSetAccessException {
227+ public Date getDate (int columnIndex ) throws InvalidResultSetAccessException {
228228 try {
229- return this .resultSet .getDate (columnIndex , cal );
229+ return this .resultSet .getDate (columnIndex );
230230 }
231231 catch (SQLException se ) {
232232 throw new InvalidResultSetAccessException (se );
233233 }
234234 }
235235
236236 /**
237- * @see java.sql.ResultSet#getDate(int )
237+ * @see java.sql.ResultSet#getDate(String )
238238 */
239239 @ Override
240- public Date getDate (int columnIndex ) throws InvalidResultSetAccessException {
240+ public Date getDate (String columnLabel ) throws InvalidResultSetAccessException {
241+ return getDate (findColumn (columnLabel ));
242+ }
243+
244+ /**
245+ * @see java.sql.ResultSet#getDate(int, Calendar)
246+ */
247+ @ Override
248+ public Date getDate (int columnIndex , Calendar cal ) throws InvalidResultSetAccessException {
241249 try {
242- return this .resultSet .getDate (columnIndex );
250+ return this .resultSet .getDate (columnIndex , cal );
243251 }
244252 catch (SQLException se ) {
245253 throw new InvalidResultSetAccessException (se );
246254 }
247255 }
256+
248257 /**
249- * @see java.sql.ResultSet#getDate(String, java.util. Calendar)
258+ * @see java.sql.ResultSet#getDate(String, Calendar)
250259 */
251260 @ Override
252261 public Date getDate (String columnLabel , Calendar cal ) throws InvalidResultSetAccessException {
253262 return getDate (findColumn (columnLabel ), cal );
254263 }
255264
256- /**
257- * @see java.sql.ResultSet#getDate(String)
258- */
259- @ Override
260- public Date getDate (String columnLabel ) throws InvalidResultSetAccessException {
261- return getDate (findColumn (columnLabel ));
262- }
263-
264265 /**
265266 * @see java.sql.ResultSet#getDouble(int)
266267 */
@@ -302,6 +303,7 @@ public float getFloat(int columnIndex) throws InvalidResultSetAccessException {
302303 public float getFloat (String columnLabel ) throws InvalidResultSetAccessException {
303304 return getFloat (findColumn (columnLabel ));
304305 }
306+
305307 /**
306308 * @see java.sql.ResultSet#getInt(int)
307309 */
@@ -345,18 +347,26 @@ public long getLong(String columnLabel) throws InvalidResultSetAccessException {
345347 }
346348
347349 /**
348- * @see java.sql.ResultSet#getObject (int, java.util.Map )
350+ * @see java.sql.ResultSet#getNString (int)
349351 */
350352 @ Override
351- public Object getObject (int i , Map < String , Class <?>> map ) throws InvalidResultSetAccessException {
353+ public String getNString (int columnIndex ) throws InvalidResultSetAccessException {
352354 try {
353- return this .resultSet .getObject ( i , map );
355+ return this .resultSet .getNString ( columnIndex );
354356 }
355357 catch (SQLException se ) {
356358 throw new InvalidResultSetAccessException (se );
357359 }
358360 }
359361
362+ /**
363+ * @see java.sql.ResultSet#getNString(String)
364+ */
365+ @ Override
366+ public String getNString (String columnLabel ) throws InvalidResultSetAccessException {
367+ return getNString (findColumn (columnLabel ));
368+ }
369+
360370 /**
361371 * @see java.sql.ResultSet#getObject(int)
362372 */
@@ -371,19 +381,53 @@ public Object getObject(int columnIndex) throws InvalidResultSetAccessException
371381 }
372382
373383 /**
374- * @see java.sql.ResultSet#getObject(String, java.util.Map )
384+ * @see java.sql.ResultSet#getObject(String)
375385 */
376386 @ Override
377- public Object getObject (String columnLabel , Map <String , Class <?>> map ) throws InvalidResultSetAccessException {
387+ public Object getObject (String columnLabel ) throws InvalidResultSetAccessException {
388+ return getObject (findColumn (columnLabel ));
389+ }
390+
391+ /**
392+ * @see java.sql.ResultSet#getObject(int, Map)
393+ */
394+ @ Override
395+ public Object getObject (int columnIndex , Map <String , Class <?>> map ) throws InvalidResultSetAccessException {
396+ try {
397+ return this .resultSet .getObject (columnIndex , map );
398+ }
399+ catch (SQLException se ) {
400+ throw new InvalidResultSetAccessException (se );
401+ }
402+ }
403+
404+ /**
405+ * @see java.sql.ResultSet#getObject(String, Map)
406+ */
407+ @ Override
408+ public Object getObject (String columnLabel , Map <String , Class <?>> map ) throws InvalidResultSetAccessException {
378409 return getObject (findColumn (columnLabel ), map );
379410 }
380411
381412 /**
382- * @see java.sql.ResultSet#getObject(String )
413+ * @see java.sql.ResultSet#getObject(int, Class )
383414 */
384415 @ Override
385- public Object getObject (String columnLabel ) throws InvalidResultSetAccessException {
386- return getObject (findColumn (columnLabel ));
416+ public <T > T getObject (int columnIndex , Class <T > type ) throws InvalidResultSetAccessException {
417+ try {
418+ return this .resultSet .getObject (columnIndex , type );
419+ }
420+ catch (SQLException se ) {
421+ throw new InvalidResultSetAccessException (se );
422+ }
423+ }
424+
425+ /**
426+ * @see java.sql.ResultSet#getObject(String, Class)
427+ */
428+ @ Override
429+ public <T > T getObject (String columnLabel , Class <T > type ) throws InvalidResultSetAccessException {
430+ return getObject (findColumn (columnLabel ), type );
387431 }
388432
389433 /**
@@ -428,19 +472,6 @@ public String getString(String columnLabel) throws InvalidResultSetAccessExcepti
428472 return getString (findColumn (columnLabel ));
429473 }
430474
431- /**
432- * @see java.sql.ResultSet#getTime(int, java.util.Calendar)
433- */
434- @ Override
435- public Time getTime (int columnIndex , Calendar cal ) throws InvalidResultSetAccessException {
436- try {
437- return this .resultSet .getTime (columnIndex , cal );
438- }
439- catch (SQLException se ) {
440- throw new InvalidResultSetAccessException (se );
441- }
442- }
443-
444475 /**
445476 * @see java.sql.ResultSet#getTime(int)
446477 */
@@ -454,14 +485,6 @@ public Time getTime(int columnIndex) throws InvalidResultSetAccessException {
454485 }
455486 }
456487
457- /**
458- * @see java.sql.ResultSet#getTime(String, java.util.Calendar)
459- */
460- @ Override
461- public Time getTime (String columnLabel , Calendar cal ) throws InvalidResultSetAccessException {
462- return getTime (findColumn (columnLabel ), cal );
463- }
464-
465488 /**
466489 * @see java.sql.ResultSet#getTime(String)
467490 */
@@ -471,18 +494,26 @@ public Time getTime(String columnLabel) throws InvalidResultSetAccessException {
471494 }
472495
473496 /**
474- * @see java.sql.ResultSet#getTimestamp (int, java.util. Calendar)
497+ * @see java.sql.ResultSet#getTime (int, Calendar)
475498 */
476499 @ Override
477- public Timestamp getTimestamp (int columnIndex , Calendar cal ) throws InvalidResultSetAccessException {
500+ public Time getTime (int columnIndex , Calendar cal ) throws InvalidResultSetAccessException {
478501 try {
479- return this .resultSet .getTimestamp (columnIndex , cal );
502+ return this .resultSet .getTime (columnIndex , cal );
480503 }
481504 catch (SQLException se ) {
482505 throw new InvalidResultSetAccessException (se );
483506 }
484507 }
485508
509+ /**
510+ * @see java.sql.ResultSet#getTime(String, Calendar)
511+ */
512+ @ Override
513+ public Time getTime (String columnLabel , Calendar cal ) throws InvalidResultSetAccessException {
514+ return getTime (findColumn (columnLabel ), cal );
515+ }
516+
486517 /**
487518 * @see java.sql.ResultSet#getTimestamp(int)
488519 */
@@ -497,19 +528,32 @@ public Timestamp getTimestamp(int columnIndex) throws InvalidResultSetAccessExce
497528 }
498529
499530 /**
500- * @see java.sql.ResultSet#getTimestamp(String, java.util.Calendar )
531+ * @see java.sql.ResultSet#getTimestamp(String)
501532 */
502533 @ Override
503- public Timestamp getTimestamp (String columnLabel , Calendar cal ) throws InvalidResultSetAccessException {
504- return getTimestamp (findColumn (columnLabel ), cal );
534+ public Timestamp getTimestamp (String columnLabel ) throws InvalidResultSetAccessException {
535+ return getTimestamp (findColumn (columnLabel ));
505536 }
506537
507538 /**
508- * @see java.sql.ResultSet#getTimestamp(String )
539+ * @see java.sql.ResultSet#getTimestamp(int, Calendar )
509540 */
510541 @ Override
511- public Timestamp getTimestamp (String columnLabel ) throws InvalidResultSetAccessException {
512- return getTimestamp (findColumn (columnLabel ));
542+ public Timestamp getTimestamp (int columnIndex , Calendar cal ) throws InvalidResultSetAccessException {
543+ try {
544+ return this .resultSet .getTimestamp (columnIndex , cal );
545+ }
546+ catch (SQLException se ) {
547+ throw new InvalidResultSetAccessException (se );
548+ }
549+ }
550+
551+ /**
552+ * @see java.sql.ResultSet#getTimestamp(String, Calendar)
553+ */
554+ @ Override
555+ public Timestamp getTimestamp (String columnLabel , Calendar cal ) throws InvalidResultSetAccessException {
556+ return getTimestamp (findColumn (columnLabel ), cal );
513557 }
514558
515559
0 commit comments