1 package org.cacert.gigi.database;
3 import java.io.Closeable;
5 import java.sql.ResultSet;
6 import java.sql.SQLException;
7 import java.sql.Timestamp;
9 public class GigiResultSet implements Closeable {
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 String getString(String columnLabel) {
64 return target.getString(columnLabel);
65 } catch (SQLException e) {
71 public boolean getBoolean(String columnLabel) {
73 return target.getBoolean(columnLabel);
74 } catch (SQLException e) {
80 public int getInt(String columnLabel) {
82 return target.getInt(columnLabel);
83 } catch (SQLException e) {
89 public Date getDate(String columnLabel) {
91 return target.getDate(columnLabel);
92 } catch (SQLException e) {
98 public Timestamp getTimestamp(String columnLabel) {
100 return target.getTimestamp(columnLabel);
101 } catch (SQLException e) {
107 public boolean next() {
109 return target.next();
110 } catch (SQLException e) {
116 public int getRow() {
118 return target.getRow();
119 } catch (SQLException e) {
125 public void beforeFirst() {
127 target.beforeFirst();
128 } catch (SQLException e) {
137 } catch (SQLException e) {
143 public void close() {
146 } catch (SQLException e) {
153 private void handleSQL(SQLException e) {
154 // TODO Auto-generated method stub