1 package org.cacert.gigi.database;
4 import java.sql.ResultSet;
5 import java.sql.SQLException;
7 import java.sql.Timestamp;
9 public class GigiResultSet {
13 public GigiResultSet(ResultSet target) {
17 public String getString(int columnIndex) {
19 return target.getString(columnIndex);
20 } catch (SQLException e) {
26 public boolean getBoolean(int columnIndex) {
28 return target.getBoolean(columnIndex);
29 } catch (SQLException e) {
35 public int getInt(int columnIndex) {
37 return target.getInt(columnIndex);
38 } catch (SQLException e) {
44 public Date getDate(int columnIndex) {
46 return target.getDate(columnIndex);
47 } catch (SQLException e) {
53 public Timestamp getTimestamp(int columnIndex) {
55 return target.getTimestamp(columnIndex);
56 } catch (SQLException e) {
62 public Time getTime(int columnIndex) {
64 return target.getTime(columnIndex);
65 } catch (SQLException e) {
71 public String getString(String columnLabel) {
73 return target.getString(columnLabel);
74 } catch (SQLException e) {
80 public boolean getBoolean(String columnLabel) {
82 return target.getBoolean(columnLabel);
83 } catch (SQLException e) {
89 public int getInt(String columnLabel) {
91 return target.getInt(columnLabel);
92 } catch (SQLException e) {
98 public Date getDate(String columnLabel) {
100 return target.getDate(columnLabel);
101 } catch (SQLException e) {
107 public Timestamp getTimestamp(String columnLabel) {
109 return target.getTimestamp(columnLabel);
110 } catch (SQLException e) {
116 public Time getTime(String columnLabel) {
118 return target.getTime(columnLabel);
119 } catch (SQLException e) {
125 public boolean next() {
127 return target.next();
128 } catch (SQLException e) {
134 public int getRow() {
136 return target.getRow();
137 } catch (SQLException e) {
143 public void beforeFirst() {
145 target.beforeFirst();
146 } catch (SQLException e) {
155 } catch (SQLException e) {
161 public void close() {
164 } catch (SQLException e) {
171 private void handleSQL(SQLException e) {
172 // TODO Auto-generated method stub