]> granicus.if.org Git - postgresql/blob - src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
Cleanup and reorganization.
[postgresql] / src / interfaces / jdbc / org / postgresql / jdbc2 / Jdbc2ResultSet.java
1 package org.postgresql.jdbc2;
2
3
4 import java.sql.*;
5 import java.util.Vector;
6 import org.postgresql.core.BaseStatement;
7 import org.postgresql.core.Field;
8
9 /* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/Jdbc2ResultSet.java,v 1.8 2003/03/07 18:39:45 barry Exp $
10  * This class implements the java.sql.ResultSet interface for JDBC2.
11  * However most of the implementation is really done in
12  * org.postgresql.jdbc2.AbstractJdbc2ResultSet or one of it's parents
13  */
14 public class Jdbc2ResultSet extends org.postgresql.jdbc2.AbstractJdbc2ResultSet implements java.sql.ResultSet
15 {
16
17         public Jdbc2ResultSet(BaseStatement statement, Field[] fields, Vector tuples, String status, int updateCount, long insertOID, boolean binaryCursor)
18         {
19                 super(statement, fields, tuples, status, updateCount, insertOID, binaryCursor);
20         }
21
22         public ResultSetMetaData getMetaData() throws SQLException
23         {
24                 return new Jdbc2ResultSetMetaData(rows, fields);
25         }
26
27         public java.sql.Clob getClob(int i) throws SQLException
28         {
29                 wasNullFlag = (this_row[i - 1] == null);
30                 if (wasNullFlag)
31                         return null;
32
33                 return new org.postgresql.jdbc2.Jdbc2Clob(connection, getInt(i));
34         }
35
36         public java.sql.Blob getBlob(int i) throws SQLException
37         {
38                 wasNullFlag = (this_row[i - 1] == null);
39                 if (wasNullFlag)
40                         return null;
41
42                 return new org.postgresql.jdbc2.Jdbc2Blob(connection, getInt(i));
43         }
44
45 }
46