1 package org.cacert.gigi.database;
4 import java.sql.ResultSet;
5 import java.sql.SQLException;
6 import java.sql.Timestamp;
8 public class GigiResultSet {
12 public GigiResultSet(ResultSet target) {
16 public String getString(int columnIndex) {
18 return target.getString(columnIndex);
19 } catch (SQLException e) {
25 public boolean getBoolean(int columnIndex) {
27 return target.getBoolean(columnIndex);
28 } catch (SQLException e) {
34 public int getInt(int columnIndex) {
36 return target.getInt(columnIndex);
37 } catch (SQLException e) {
43 public Date getDate(int columnIndex) {
45 return target.getDate(columnIndex);
46 } catch (SQLException e) {
52 public Timestamp getTimestamp(int columnIndex) {
54 return target.getTimestamp(columnIndex);
55 } catch (SQLException e) {
61 public String getString(String columnLabel) {
63 return target.getString(columnLabel);
64 } catch (SQLException e) {
70 public boolean getBoolean(String columnLabel) {
72 return target.getBoolean(columnLabel);
73 } catch (SQLException e) {
79 public int getInt(String columnLabel) {
81 return target.getInt(columnLabel);
82 } catch (SQLException e) {
88 public Date getDate(String columnLabel) {
90 return target.getDate(columnLabel);
91 } catch (SQLException e) {
97 public Timestamp getTimestamp(String columnLabel) {
99 return target.getTimestamp(columnLabel);
100 } catch (SQLException e) {
106 public boolean next() {
108 return target.next();
109 } catch (SQLException e) {
115 public int getRow() {
117 return target.getRow();
118 } catch (SQLException e) {
124 public void beforeFirst() {
126 target.beforeFirst();
127 } catch (SQLException e) {
136 } catch (SQLException e) {
142 public void close() {
145 } catch (SQLException e) {
152 private void handleSQL(SQLException e) {
153 // TODO Auto-generated method stub