]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/database/GigiResultSet.java
add columns for additional test-information
[gigi.git] / src / org / cacert / gigi / database / GigiResultSet.java
index 9dc83bd774e007d5335f24815ea3234a3c7f502a..d31c9ccb78ef83079c16eb02f8c04bc47d984536 100644 (file)
@@ -1,14 +1,14 @@
 package org.cacert.gigi.database;
 
+import java.io.Closeable;
 import java.sql.Date;
 import java.sql.ResultSet;
 import java.sql.SQLException;
-import java.sql.Time;
 import java.sql.Timestamp;
 
-public class GigiResultSet {
+public class GigiResultSet implements Closeable {
 
-    ResultSet target;
+    private ResultSet target;
 
     public GigiResultSet(ResultSet target) {
         this.target = target;
@@ -59,15 +59,6 @@ public class GigiResultSet {
         }
     }
 
-    public Time getTime(int columnIndex) {
-        try {
-            return target.getTime(columnIndex);
-        } catch (SQLException e) {
-            handleSQL(e);
-            throw new Error(e);
-        }
-    }
-
     public String getString(String columnLabel) {
         try {
             return target.getString(columnLabel);
@@ -113,15 +104,6 @@ public class GigiResultSet {
         }
     }
 
-    public Time getTime(String columnLabel) {
-        try {
-            return target.getTime(columnLabel);
-        } catch (SQLException e) {
-            handleSQL(e);
-            throw new Error(e);
-        }
-    }
-
     public boolean next() {
         try {
             return target.next();