~ubuntu-branches/ubuntu/oneiric/postgresql-pljava/oneiric-201109061811

« back to all changes in this revision

Viewing changes to src/java/pljava/org/postgresql/pljava/jdbc/SingleRowResultSet.java

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2006-06-26 10:44:55 UTC
  • mfrom: (1.1.1 upstream) (3.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20060626104455-135i9wosat2k8vvt
Tags: 1.3.0-1
* New upstream release (closes: #375199)
* Built for postgresql 8.1 (closes: #339641)
* Rebuilt for new libgcj library (closes: #369986)
* Updated copyright file
* Updated standards version
* Made use of cdbs simple patchsys

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2004, 2005 TADA AB - Taby Sweden
 
2
 * Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
3
3
 * Distributed under the terms shown in the file COPYRIGHT
4
4
 * found in the root folder of this project or at
5
5
 * http://eng.tada.se/osprojects/COPYRIGHT.html
6
6
 */
7
7
package org.postgresql.pljava.jdbc;
8
8
 
 
9
import java.sql.ResultSetMetaData;
9
10
import java.sql.SQLException;
10
11
 
11
12
import org.postgresql.pljava.internal.TupleDesc;
12
13
 
13
14
/**
14
 
 * A single row, updateable ResultSet
 
15
 * A single row ResultSet
15
16
 *
16
17
 * @author Thomas Hallgren
17
18
 */
41
42
                return 1;
42
43
        }
43
44
 
 
45
        /**
 
46
         * Returns the metadata for this result set.
 
47
         */
 
48
        public ResultSetMetaData getMetaData() throws SQLException
 
49
        {
 
50
                return new SPIResultSetMetaData(this.getTupleDesc());
 
51
        }
 
52
 
44
53
        public int getRow()
45
54
        throws SQLException
46
55
        {
74
83
        }
75
84
 
76
85
        /**
77
 
         * Cancels all changes but doesn't really close the set.
78
 
         * @throws SQLException indicating that this feature is not supported.
79
 
         */
80
 
        public void close()
81
 
        throws SQLException
82
 
        {
83
 
                this.cancelRowUpdates();
84
 
        }
85
 
 
86
 
        /**
87
86
         * Cursor positioning is not implemented.
88
87
         * @throws SQLException indicating that this feature is not supported.
89
88
         */