Repository: commons-dbcp
Updated Branches:
  refs/heads/master b7df9811b -> 99facd021


Sort members in AB order so it's easier to find stuff.

Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/99facd02
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/99facd02
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/99facd02

Branch: refs/heads/master
Commit: 99facd0219053f660c43b318b0966de40354d76d
Parents: b7df981
Author: Gary Gregory <garydgreg...@gmail.com>
Authored: Sun Jun 17 10:11:12 2018 -0600
Committer: Gary Gregory <garydgreg...@gmail.com>
Committed: Sun Jun 17 10:11:12 2018 -0600

----------------------------------------------------------------------
 .../apache/commons/dbcp2/TesterResultSet.java   | 836 +++++++++----------
 1 file changed, 418 insertions(+), 418 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/99facd02/src/test/java/org/apache/commons/dbcp2/TesterResultSet.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/dbcp2/TesterResultSet.java 
b/src/test/java/org/apache/commons/dbcp2/TesterResultSet.java
index a980605..f5c8342 100644
--- a/src/test/java/org/apache/commons/dbcp2/TesterResultSet.java
+++ b/src/test/java/org/apache/commons/dbcp2/TesterResultSet.java
@@ -40,43 +40,62 @@ import java.sql.SQLXML;
  * A dummy {@link ResultSet}, for testing purposes.
  */
 public class TesterResultSet implements ResultSet {
-    public TesterResultSet(final Statement stmt) {
-        _statement = stmt;
-    }
+    protected int _type = ResultSet.TYPE_FORWARD_ONLY;
 
-    public TesterResultSet(final Statement stmt, final Object[][] data) {
+    protected int _concurrency = ResultSet.CONCUR_READ_ONLY;
+
+    protected Object[][] _data = null;
+
+    protected int _currentRow = -1;
+    protected Statement _statement = null;
+
+    protected int _rowsLeft = 2;
+    protected boolean _open = true;
+
+    public TesterResultSet(final Statement stmt) {
         _statement = stmt;
-        _data = data;
     }
-
     public TesterResultSet(final Statement stmt, final int type, final int 
concurrency) {
         _statement = stmt;
         _data = null;
         _type = type;
         _concurrency = concurrency;
     }
+    public TesterResultSet(final Statement stmt, final Object[][] data) {
+        _statement = stmt;
+        _data = data;
+    }
 
-    protected int _type = ResultSet.TYPE_FORWARD_ONLY;
-    protected int _concurrency = ResultSet.CONCUR_READ_ONLY;
+    @Override
+    public boolean absolute( final int row ) throws SQLException {
+        checkOpen();
+        return false;
+    }
 
-    protected Object[][] _data = null;
-    protected int _currentRow = -1;
+    @Override
+    public void afterLast() throws SQLException {
+        checkOpen();
+    }
 
-    protected Statement _statement = null;
-    protected int _rowsLeft = 2;
-    protected boolean _open = true;
+    @Override
+    public void beforeFirst() throws SQLException {
+        checkOpen();
+    }
 
     @Override
-    public boolean next() throws SQLException {
+    public void cancelRowUpdates() throws SQLException {
         checkOpen();
-        if (_data != null) {
-            _currentRow++;
-            return _currentRow < _data.length;
-        }
-        if(--_rowsLeft > 0) {
-            return true;
+    }
+
+    protected void checkOpen() throws SQLException {
+        if(!_open) {
+            throw new SQLException("ResultSet is closed.");
         }
-        return false;
+    }
+
+    @Override
+    public void clearWarnings() throws SQLException {
+        checkOpen();
     }
 
     @Override
@@ -94,63 +113,50 @@ public class TesterResultSet implements ResultSet {
     }
 
     @Override
-    public boolean wasNull() throws SQLException {
+    public void deleteRow() throws SQLException {
         checkOpen();
-        return false;
     }
 
     @Override
-    public String getString(final int columnIndex) throws SQLException {
-        checkOpen();
-        if (columnIndex == -1) {
-            throw new SQLException("broken connection");
-        }
-        if (_data != null) {
-            return (String) getObject(columnIndex);
-        }
-        return "String" + columnIndex;
-    }
-
-    @Override
-    public boolean getBoolean(final int columnIndex) throws SQLException {
+    public int findColumn(final String columnName) throws SQLException {
         checkOpen();
-        return true;
+        return 1;
     }
 
     @Override
-    public byte getByte(final int columnIndex) throws SQLException {
+    public boolean first() throws SQLException {
         checkOpen();
-        return (byte)columnIndex;
+        return false;
     }
 
     @Override
-    public short getShort(final int columnIndex) throws SQLException {
+    public Array getArray(final int i) throws SQLException {
         checkOpen();
-        return (short)columnIndex;
+        return null;
     }
 
     @Override
-    public int getInt(final int columnIndex) throws SQLException {
+    public Array getArray(final String colName) throws SQLException {
         checkOpen();
-        return (short)columnIndex;
+        return null;
     }
 
     @Override
-    public long getLong(final int columnIndex) throws SQLException {
+    public java.io.InputStream getAsciiStream(final int columnIndex) throws 
SQLException {
         checkOpen();
-        return columnIndex;
+        return null;
     }
 
     @Override
-    public float getFloat(final int columnIndex) throws SQLException {
+    public java.io.InputStream getAsciiStream(final String columnName) throws 
SQLException {
         checkOpen();
-        return columnIndex;
+        return null;
     }
 
     @Override
-    public double getDouble(final int columnIndex) throws SQLException {
+    public BigDecimal getBigDecimal(final int columnIndex) throws SQLException 
{
         checkOpen();
-        return columnIndex;
+        return new BigDecimal(columnIndex);
     }
 
     /** @deprecated */
@@ -162,53 +168,47 @@ public class TesterResultSet implements ResultSet {
     }
 
     @Override
-    public byte[] getBytes(final int columnIndex) throws SQLException {
-        checkOpen();
-        return new byte[] { (byte)columnIndex };
-    }
-
-    @Override
-    public java.sql.Date getDate(final int columnIndex) throws SQLException {
+    public BigDecimal getBigDecimal(final String columnName) throws 
SQLException {
         checkOpen();
-        return null;
+        return new BigDecimal(columnName.hashCode());
     }
 
+    /** @deprecated */
+    @Deprecated
     @Override
-    public java.sql.Time getTime(final int columnIndex) throws SQLException {
+    public BigDecimal getBigDecimal(final String columnName, final int scale) 
throws SQLException {
         checkOpen();
-        return null;
+        return new BigDecimal(columnName.hashCode());
     }
 
     @Override
-    public java.sql.Timestamp getTimestamp(final int columnIndex) throws 
SQLException {
+    public java.io.InputStream getBinaryStream(final int columnIndex) throws 
SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public java.io.InputStream getAsciiStream(final int columnIndex) throws 
SQLException {
+    public java.io.InputStream getBinaryStream(final String columnName) throws 
SQLException {
         checkOpen();
         return null;
     }
 
-    /** @deprecated */
-    @Deprecated
     @Override
-    public java.io.InputStream getUnicodeStream(final int columnIndex) throws 
SQLException {
+    public Blob getBlob(final int i) throws SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public java.io.InputStream getBinaryStream(final int columnIndex) throws 
SQLException {
+    public Blob getBlob(final String colName) throws SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public String getString(final String columnName) throws SQLException {
+    public boolean getBoolean(final int columnIndex) throws SQLException {
         checkOpen();
-        return columnName;
+        return true;
     }
 
     @Override
@@ -218,47 +218,21 @@ public class TesterResultSet implements ResultSet {
     }
 
     @Override
-    public byte getByte(final String columnName) throws SQLException {
-        checkOpen();
-        return (byte)columnName.hashCode();
-    }
-
-    @Override
-    public short getShort(final String columnName) throws SQLException {
-        checkOpen();
-        return (short)columnName.hashCode();
-    }
-
-    @Override
-    public int getInt(final String columnName) throws SQLException {
-        checkOpen();
-        return columnName.hashCode();
-    }
-
-    @Override
-    public long getLong(final String columnName) throws SQLException {
-        checkOpen();
-        return columnName.hashCode();
-    }
-
-    @Override
-    public float getFloat(final String columnName) throws SQLException {
+    public byte getByte(final int columnIndex) throws SQLException {
         checkOpen();
-        return columnName.hashCode();
+        return (byte)columnIndex;
     }
 
     @Override
-    public double getDouble(final String columnName) throws SQLException {
+    public byte getByte(final String columnName) throws SQLException {
         checkOpen();
-        return columnName.hashCode();
+        return (byte)columnName.hashCode();
     }
 
-    /** @deprecated */
-    @Deprecated
     @Override
-    public BigDecimal getBigDecimal(final String columnName, final int scale) 
throws SQLException {
+    public byte[] getBytes(final int columnIndex) throws SQLException {
         checkOpen();
-        return new BigDecimal(columnName.hashCode());
+        return new byte[] { (byte)columnIndex };
     }
 
     @Override
@@ -273,52 +247,32 @@ public class TesterResultSet implements ResultSet {
     }
 
     @Override
-    public java.sql.Date getDate(final String columnName) throws SQLException {
-        checkOpen();
-        return null;
-    }
-
-    @Override
-    public java.sql.Time getTime(final String columnName) throws SQLException {
-        checkOpen();
-        return null;
-    }
-
-    @Override
-    public java.sql.Timestamp getTimestamp(final String columnName) throws 
SQLException {
+    public java.io.Reader getCharacterStream(final int columnIndex) throws 
SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public java.io.InputStream getAsciiStream(final String columnName) throws 
SQLException {
+    public java.io.Reader getCharacterStream(final String columnName) throws 
SQLException {
         checkOpen();
         return null;
     }
 
-    /** @deprecated */
-    @Deprecated
     @Override
-    public java.io.InputStream getUnicodeStream(final String columnName) 
throws SQLException {
+    public Clob getClob(final int i) throws SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public java.io.InputStream getBinaryStream(final String columnName) throws 
SQLException {
+    public Clob getClob(final String colName) throws SQLException {
         checkOpen();
         return null;
     }
 
-   @Override
-public SQLWarning getWarnings() throws SQLException {
-       checkOpen();
-       return null;
-   }
-
     @Override
-    public void clearWarnings() throws SQLException {
-        checkOpen();
+    public int getConcurrency() throws SQLException {
+        return this._concurrency;
     }
 
     @Override
@@ -328,553 +282,562 @@ public SQLWarning getWarnings() throws SQLException {
     }
 
     @Override
-    public ResultSetMetaData getMetaData() throws SQLException {
+    public java.sql.Date getDate(final int columnIndex) throws SQLException {
         checkOpen();
         return null;
     }
 
-    @Override
-    public Object getObject(final int columnIndex) throws SQLException {
-        checkOpen();
-        if (_data != null) {
-            return _data[_currentRow][columnIndex-1];
-        }
-        return new Object();
-    }
-
-    @Override
-    public Object getObject(final String columnName) throws SQLException {
-        checkOpen();
-        return columnName;
-    }
-
-    @Override
-    public int findColumn(final String columnName) throws SQLException {
-        checkOpen();
-        return 1;
-    }
-
+   @Override
+public java.sql.Date getDate(final int columnIndex, final Calendar cal) throws 
SQLException {
+    checkOpen();
+    return null;
+}
 
     @Override
-    public java.io.Reader getCharacterStream(final int columnIndex) throws 
SQLException {
+    public java.sql.Date getDate(final String columnName) throws SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public java.io.Reader getCharacterStream(final String columnName) throws 
SQLException {
+    public java.sql.Date getDate(final String columnName, final Calendar cal) 
throws SQLException {
         checkOpen();
         return null;
     }
 
     @Override
-    public BigDecimal getBigDecimal(final int columnIndex) throws SQLException 
{
+    public double getDouble(final int columnIndex) throws SQLException {
         checkOpen();
-        return new BigDecimal(columnIndex);
+        return columnIndex;
     }
 
     @Override
-    public BigDecimal getBigDecimal(final String columnName) throws 
SQLException {
+    public double getDouble(final String columnName) throws SQLException {
         checkOpen();
-        return new BigDecimal(columnName.hashCode());
+        return columnName.hashCode();
     }
 
     @Override
-    public boolean isBeforeFirst() throws SQLException {
+    public int getFetchDirection() throws SQLException {
         checkOpen();
-        return _rowsLeft == 2;
+        return 1;
     }
 
     @Override
-    public boolean isAfterLast() throws SQLException {
+    public int getFetchSize() throws SQLException {
         checkOpen();
-        return _rowsLeft < 0;
+        return 2;
     }
 
+
     @Override
-    public boolean isFirst() throws SQLException {
+    public float getFloat(final int columnIndex) throws SQLException {
         checkOpen();
-        return _rowsLeft == 1;
+        return columnIndex;
     }
 
     @Override
-    public boolean isLast() throws SQLException {
+    public float getFloat(final String columnName) throws SQLException {
         checkOpen();
-        return _rowsLeft == 0;
+        return columnName.hashCode();
     }
 
     @Override
-    public void beforeFirst() throws SQLException {
-        checkOpen();
+    public int getHoldability() throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void afterLast() throws SQLException {
+    public int getInt(final int columnIndex) throws SQLException {
         checkOpen();
+        return (short)columnIndex;
     }
 
     @Override
-    public boolean first() throws SQLException {
+    public int getInt(final String columnName) throws SQLException {
         checkOpen();
-        return false;
+        return columnName.hashCode();
     }
 
     @Override
-    public boolean last() throws SQLException {
+    public long getLong(final int columnIndex) throws SQLException {
         checkOpen();
-        return false;
+        return columnIndex;
     }
 
     @Override
-    public int getRow() throws SQLException {
+    public long getLong(final String columnName) throws SQLException {
         checkOpen();
-        return 3 - _rowsLeft;
+        return columnName.hashCode();
     }
 
     @Override
-    public boolean absolute( final int row ) throws SQLException {
+    public ResultSetMetaData getMetaData() throws SQLException {
         checkOpen();
-        return false;
+        return null;
     }
 
     @Override
-    public boolean relative( final int rows ) throws SQLException {
-        checkOpen();
-        return false;
+    public Reader getNCharacterStream(final int columnIndex) throws 
SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public boolean previous() throws SQLException {
-        checkOpen();
-        return false;
+    public Reader getNCharacterStream(final String columnLabel) throws 
SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void setFetchDirection(final int direction) throws SQLException {
-        checkOpen();
+    public NClob getNClob(final int columnIndex) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public int getFetchDirection() throws SQLException {
-        checkOpen();
-        return 1;
+    public NClob getNClob(final String columnLabel) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void setFetchSize(final int rows) throws SQLException {
-        checkOpen();
+    public String getNString(final int columnIndex) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public int getFetchSize() throws SQLException {
-        checkOpen();
-        return 2;
+    public String getNString(final String columnLabel) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public int getType() throws SQLException {
-        return this._type;
+    public Object getObject(final int columnIndex) throws SQLException {
+        checkOpen();
+        if (_data != null) {
+            return _data[_currentRow][columnIndex-1];
+        }
+        return new Object();
     }
 
     @Override
-    public int getConcurrency() throws SQLException {
-        return this._concurrency;
+    public <T> T getObject(final int columnIndex, final Class<T> type) throws 
SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public boolean rowUpdated() throws SQLException {
+    public Object getObject(final int i, final Map<String,Class<?>> map) 
throws SQLException {
         checkOpen();
-        return false;
+        return new Object();
     }
 
     @Override
-    public boolean rowInserted() throws SQLException {
+    public Object getObject(final String columnName) throws SQLException {
         checkOpen();
-        return false;
+        return columnName;
     }
 
     @Override
-    public boolean rowDeleted() throws SQLException {
-        checkOpen();
-        return false;
+    public <T> T getObject(final String columnLabel, final Class<T> type)
+            throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateNull(final int columnIndex) throws SQLException {
+    public Object getObject(final String colName, final Map<String,Class<?>> 
map) throws SQLException {
         checkOpen();
+        return colName;
     }
 
     @Override
-    public void updateBoolean(final int columnIndex, final boolean x) throws 
SQLException {
+    public Ref getRef(final int i) throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateByte(final int columnIndex, final byte x) throws 
SQLException {
+    public Ref getRef(final String colName) throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateShort(final int columnIndex, final short x) throws 
SQLException {
+    public int getRow() throws SQLException {
         checkOpen();
+        return 3 - _rowsLeft;
     }
 
     @Override
-    public void updateInt(final int columnIndex, final int x) throws 
SQLException {
-        checkOpen();
+    public RowId getRowId(final int columnIndex) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateLong(final int columnIndex, final long x) throws 
SQLException {
-        checkOpen();
+    public RowId getRowId(final String columnLabel) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateFloat(final int columnIndex, final float x) throws 
SQLException {
+    public short getShort(final int columnIndex) throws SQLException {
         checkOpen();
+        return (short)columnIndex;
     }
 
     @Override
-    public void updateDouble(final int columnIndex, final double x) throws 
SQLException {
+    public short getShort(final String columnName) throws SQLException {
         checkOpen();
+        return (short)columnName.hashCode();
     }
 
     @Override
-    public void updateBigDecimal(final int columnIndex, final BigDecimal x) 
throws SQLException {
-        checkOpen();
+    public SQLXML getSQLXML(final int columnIndex) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateString(final int columnIndex, final String x) throws 
SQLException {
-        checkOpen();
+    public SQLXML getSQLXML(final String columnLabel) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBytes(final int columnIndex, final byte x[]) throws 
SQLException {
+    public Statement getStatement() throws SQLException {
         checkOpen();
+        return _statement;
     }
 
     @Override
-    public void updateDate(final int columnIndex, final java.sql.Date x) 
throws SQLException {
+    public String getString(final int columnIndex) throws SQLException {
         checkOpen();
+        if (columnIndex == -1) {
+            throw new SQLException("broken connection");
+        }
+        if (_data != null) {
+            return (String) getObject(columnIndex);
+        }
+        return "String" + columnIndex;
     }
 
     @Override
-    public void updateTime(final int columnIndex, final java.sql.Time x) 
throws SQLException {
+    public String getString(final String columnName) throws SQLException {
         checkOpen();
+        return columnName;
     }
 
     @Override
-    public void updateTimestamp(final int columnIndex, final 
java.sql.Timestamp x) throws SQLException {
+    public java.sql.Time getTime(final int columnIndex) throws SQLException {
         checkOpen();
+        return null;
     }
 
-
     @Override
-    public void updateAsciiStream(final int columnIndex,
-               final java.io.InputStream x,
-               final int length) throws SQLException {
+    public java.sql.Time getTime(final int columnIndex, final Calendar cal) 
throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateBinaryStream(final int columnIndex,
-                final java.io.InputStream x,
-                final int length) throws SQLException {
+    public java.sql.Time getTime(final String columnName) throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateCharacterStream(final int columnIndex,
-                 final java.io.Reader x,
-                 final int length) throws SQLException {
+    public java.sql.Time getTime(final String columnName, final Calendar cal) 
throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateObject(final int columnIndex, final Object x, final int 
scale)
-      throws SQLException {
+    public java.sql.Timestamp getTimestamp(final int columnIndex) throws 
SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateObject(final int columnIndex, final Object x) throws 
SQLException {
+    public java.sql.Timestamp getTimestamp(final int columnIndex, final 
Calendar cal) throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateNull(final String columnName) throws SQLException {
+    public java.sql.Timestamp getTimestamp(final String columnName) throws 
SQLException {
         checkOpen();
+        return null;
     }
 
+
     @Override
-    public void updateBoolean(final String columnName, final boolean x) throws 
SQLException {
+    public java.sql.Timestamp getTimestamp(final String columnName, final 
Calendar cal)
+      throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateByte(final String columnName, final byte x) throws 
SQLException {
-        checkOpen();
+    public int getType() throws SQLException {
+        return this._type;
     }
 
+    /** @deprecated */
+    @Deprecated
     @Override
-    public void updateShort(final String columnName, final short x) throws 
SQLException {
+    public java.io.InputStream getUnicodeStream(final int columnIndex) throws 
SQLException {
         checkOpen();
+        return null;
     }
 
+    /** @deprecated */
+    @Deprecated
     @Override
-    public void updateInt(final String columnName, final int x) throws 
SQLException {
+    public java.io.InputStream getUnicodeStream(final String columnName) 
throws SQLException {
         checkOpen();
+        return null;
     }
 
     @Override
-    public void updateLong(final String columnName, final long x) throws 
SQLException {
-        checkOpen();
+    public java.net.URL getURL(final int columnIndex) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateFloat(final String columnName, final float x) throws 
SQLException {
-        checkOpen();
+    public java.net.URL getURL(final String columnName) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateDouble(final String columnName, final double x) throws 
SQLException {
-        checkOpen();
-    }
+    public SQLWarning getWarnings() throws SQLException {
+           checkOpen();
+           return null;
+       }
 
     @Override
-    public void updateBigDecimal(final String columnName, final BigDecimal x) 
throws SQLException {
+    public void insertRow() throws SQLException {
         checkOpen();
     }
 
     @Override
-    public void updateString(final String columnName, final String x) throws 
SQLException {
+    public boolean isAfterLast() throws SQLException {
         checkOpen();
+        return _rowsLeft < 0;
     }
 
     @Override
-    public void updateBytes(final String columnName, final byte x[]) throws 
SQLException {
+    public boolean isBeforeFirst() throws SQLException {
         checkOpen();
+        return _rowsLeft == 2;
     }
 
     @Override
-    public void updateDate(final String columnName, final java.sql.Date x) 
throws SQLException {
-        checkOpen();
+    public boolean isClosed() throws SQLException {
+        return !_open;
     }
 
     @Override
-    public void updateTime(final String columnName, final java.sql.Time x) 
throws SQLException {
+    public boolean isFirst() throws SQLException {
         checkOpen();
+        return _rowsLeft == 1;
     }
 
     @Override
-    public void updateTimestamp(final String columnName, final 
java.sql.Timestamp x)
-      throws SQLException {
+    public boolean isLast() throws SQLException {
         checkOpen();
+        return _rowsLeft == 0;
     }
 
     @Override
-    public void updateAsciiStream(final String columnName,
-               final java.io.InputStream x,
-               final int length) throws SQLException {
-        checkOpen();
+    public boolean isWrapperFor(final Class<?> iface) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBinaryStream(final String columnName,
-                final java.io.InputStream x,
-                final int length) throws SQLException {
+    public boolean last() throws SQLException {
         checkOpen();
+        return false;
     }
 
     @Override
-    public void updateCharacterStream(final String columnName,
-                 final java.io.Reader reader,
-                 final int length) throws SQLException {
+    public void moveToCurrentRow() throws SQLException {
         checkOpen();
     }
 
     @Override
-    public void updateObject(final String columnName, final Object x, final 
int scale)
-      throws SQLException {
+    public void moveToInsertRow() throws SQLException {
         checkOpen();
     }
 
     @Override
-    public void updateObject(final String columnName, final Object x) throws 
SQLException {
+    public boolean next() throws SQLException {
         checkOpen();
+        if (_data != null) {
+            _currentRow++;
+            return _currentRow < _data.length;
+        }
+        if(--_rowsLeft > 0) {
+            return true;
+        }
+        return false;
     }
 
     @Override
-    public void insertRow() throws SQLException {
+    public boolean previous() throws SQLException {
         checkOpen();
+        return false;
     }
 
     @Override
-    public void updateRow() throws SQLException {
+    public void refreshRow() throws SQLException {
         checkOpen();
     }
 
     @Override
-    public void deleteRow() throws SQLException {
+    public boolean relative( final int rows ) throws SQLException {
         checkOpen();
+        return false;
     }
 
     @Override
-    public void refreshRow() throws SQLException {
+    public boolean rowDeleted() throws SQLException {
         checkOpen();
+        return false;
     }
 
     @Override
-    public void cancelRowUpdates() throws SQLException {
+    public boolean rowInserted() throws SQLException {
         checkOpen();
+        return false;
     }
 
     @Override
-    public void moveToInsertRow() throws SQLException {
+    public boolean rowUpdated() throws SQLException {
         checkOpen();
+        return false;
     }
 
     @Override
-    public void moveToCurrentRow() throws SQLException {
+    public void setFetchDirection(final int direction) throws SQLException {
         checkOpen();
     }
 
     @Override
-    public Statement getStatement() throws SQLException {
+    public void setFetchSize(final int rows) throws SQLException {
         checkOpen();
-        return _statement;
     }
 
+    @Override
+    public <T> T unwrap(final Class<T> iface) throws SQLException {
+        throw new SQLException("Not implemented.");
+    }
 
     @Override
-    public Object getObject(final int i, final Map<String,Class<?>> map) 
throws SQLException {
-        checkOpen();
-        return new Object();
+    public void updateArray(final int columnIndex, final java.sql.Array x)
+        throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public Ref getRef(final int i) throws SQLException {
-        checkOpen();
-        return null;
+    public void updateArray(final String columnName, final java.sql.Array x)
+        throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public Blob getBlob(final int i) throws SQLException {
-        checkOpen();
-        return null;
+    public void updateAsciiStream(final int columnIndex, final InputStream 
inputStream) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public Clob getClob(final int i) throws SQLException {
-        checkOpen();
-        return null;
+    public void updateAsciiStream(final int columnIndex, final InputStream 
inputStream, final long length) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public Array getArray(final int i) throws SQLException {
+    public void updateAsciiStream(final int columnIndex,
+               final java.io.InputStream x,
+               final int length) throws SQLException {
         checkOpen();
-        return null;
     }
 
+
     @Override
-    public Object getObject(final String colName, final Map<String,Class<?>> 
map) throws SQLException {
-        checkOpen();
-        return colName;
+    public void updateAsciiStream(final String columnLabel, final InputStream 
inputStream) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public Ref getRef(final String colName) throws SQLException {
-        checkOpen();
-        return null;
+    public void updateAsciiStream(final String columnLabel, final InputStream 
inputStream, final long length) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public Blob getBlob(final String colName) throws SQLException {
+    public void updateAsciiStream(final String columnName,
+               final java.io.InputStream x,
+               final int length) throws SQLException {
         checkOpen();
-        return null;
     }
 
     @Override
-    public Clob getClob(final String colName) throws SQLException {
+    public void updateBigDecimal(final int columnIndex, final BigDecimal x) 
throws SQLException {
         checkOpen();
-        return null;
     }
 
     @Override
-    public Array getArray(final String colName) throws SQLException {
+    public void updateBigDecimal(final String columnName, final BigDecimal x) 
throws SQLException {
         checkOpen();
-        return null;
     }
 
     @Override
-    public java.sql.Date getDate(final int columnIndex, final Calendar cal) 
throws SQLException {
-        checkOpen();
-        return null;
+    public void updateBinaryStream(final int columnIndex, final InputStream 
inputStream) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public java.sql.Date getDate(final String columnName, final Calendar cal) 
throws SQLException {
-        checkOpen();
-        return null;
+    public void updateBinaryStream(final int columnIndex, final InputStream 
inputStream, final long length) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public java.sql.Time getTime(final int columnIndex, final Calendar cal) 
throws SQLException {
+    public void updateBinaryStream(final int columnIndex,
+                final java.io.InputStream x,
+                final int length) throws SQLException {
         checkOpen();
-        return null;
     }
 
     @Override
-    public java.sql.Time getTime(final String columnName, final Calendar cal) 
throws SQLException {
-        checkOpen();
-        return null;
+    public void updateBinaryStream(final String columnLabel, final InputStream 
inputStream) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public java.sql.Timestamp getTimestamp(final int columnIndex, final 
Calendar cal) throws SQLException {
-        checkOpen();
-        return null;
+    public void updateBinaryStream(final String columnLabel, final InputStream 
inputStream, final long length) throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public java.sql.Timestamp getTimestamp(final String columnName, final 
Calendar cal)
-      throws SQLException {
+    public void updateBinaryStream(final String columnName,
+                final java.io.InputStream x,
+                final int length) throws SQLException {
         checkOpen();
-        return null;
-    }
-
-    protected void checkOpen() throws SQLException {
-        if(!_open) {
-            throw new SQLException("ResultSet is closed.");
-        }
     }
 
     @Override
-    public java.net.URL getURL(final int columnIndex) throws SQLException {
+    public void updateBlob(final int columnIndex, final InputStream 
inputStream) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public java.net.URL getURL(final String columnName) throws SQLException {
+    public void updateBlob(final int columnIndex, final InputStream 
inputStream, final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateRef(final int columnIndex, final java.sql.Ref x)
+    public void updateBlob(final int columnIndex, final java.sql.Blob x)
         throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateRef(final String columnName, final java.sql.Ref x)
-        throws SQLException {
+    public void updateBlob(final String columnLabel, final InputStream 
inputStream) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBlob(final int columnIndex, final java.sql.Blob x)
-        throws SQLException {
+    public void updateBlob(final String columnLabel, final InputStream 
inputStream, final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
@@ -885,137 +848,154 @@ public SQLWarning getWarnings() throws SQLException {
     }
 
     @Override
-    public void updateClob(final int columnIndex, final java.sql.Clob x)
-        throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateBoolean(final int columnIndex, final boolean x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateClob(final String columnName, final java.sql.Clob x)
-        throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateBoolean(final String columnName, final boolean x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateArray(final int columnIndex, final java.sql.Array x)
-        throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateByte(final int columnIndex, final byte x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateArray(final String columnName, final java.sql.Array x)
-        throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateByte(final String columnName, final byte x) throws 
SQLException {
+        checkOpen();
     }
 
+    @Override
+    public void updateBytes(final int columnIndex, final byte x[]) throws 
SQLException {
+        checkOpen();
+    }
 
     @Override
-    public boolean isWrapperFor(final Class<?> iface) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateBytes(final String columnName, final byte x[]) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public <T> T unwrap(final Class<T> iface) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateCharacterStream(final int columnIndex,
+                 final java.io.Reader x,
+                 final int length) throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public RowId getRowId(final int columnIndex) throws SQLException {
+    public void updateCharacterStream(final int columnIndex, final Reader 
reader) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public RowId getRowId(final String columnLabel) throws SQLException {
+    public void updateCharacterStream(final int columnIndex, final Reader 
reader, final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateRowId(final int columnIndex, final RowId value) throws 
SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateCharacterStream(final String columnName,
+                 final java.io.Reader reader,
+                 final int length) throws SQLException {
+        checkOpen();
     }
 
+
     @Override
-    public void updateRowId(final String columnLabel, final RowId value) 
throws SQLException {
+    public void updateCharacterStream(final String columnLabel, final Reader 
reader) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public int getHoldability() throws SQLException {
+    public void updateCharacterStream(final String columnLabel, final Reader 
reader, final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public boolean isClosed() throws SQLException {
-        return !_open;
+    public void updateClob(final int columnIndex, final java.sql.Clob x)
+        throws SQLException {
+        throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateNString(final int columnIndex, final String value) 
throws SQLException {
+    public void updateClob(final int columnIndex, final Reader reader) throws 
SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateNString(final String columnLabel, final String value) 
throws SQLException {
+    public void updateClob(final int columnIndex, final Reader reader, final 
long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateNClob(final int columnIndex, final NClob value) throws 
SQLException {
+    public void updateClob(final String columnName, final java.sql.Clob x)
+        throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateNClob(final String columnLabel, final NClob value) 
throws SQLException {
+    public void updateClob(final String columnLabel, final Reader reader) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public NClob getNClob(final int columnIndex) throws SQLException {
+    public void updateClob(final String columnLabel, final Reader reader, 
final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public NClob getNClob(final String columnLabel) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateDate(final int columnIndex, final java.sql.Date x) 
throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public SQLXML getSQLXML(final int columnIndex) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateDate(final String columnName, final java.sql.Date x) 
throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public SQLXML getSQLXML(final String columnLabel) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateDouble(final int columnIndex, final double x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateSQLXML(final int columnIndex, final SQLXML value) throws 
SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateDouble(final String columnName, final double x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateSQLXML(final String columnLabel, final SQLXML value) 
throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateFloat(final int columnIndex, final float x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public String getNString(final int columnIndex) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateFloat(final String columnName, final float x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public String getNString(final String columnLabel) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateInt(final int columnIndex, final int x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public Reader getNCharacterStream(final int columnIndex) throws 
SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateInt(final String columnName, final int x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public Reader getNCharacterStream(final String columnLabel) throws 
SQLException {
+    public void updateLong(final int columnIndex, final long x) throws 
SQLException {
+        checkOpen();
+    }
+
+    @Override
+    public void updateLong(final String columnName, final long x) throws 
SQLException {
+        checkOpen();
+    }
+
+    @Override
+    public void updateNCharacterStream(final int columnIndex, final Reader 
reader) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
@@ -1025,148 +1005,168 @@ public SQLWarning getWarnings() throws SQLException {
     }
 
     @Override
-    public void updateNCharacterStream(final String columnLabel, final Reader 
reader, final long length) throws SQLException {
+    public void updateNCharacterStream(final String columnLabel, final Reader 
reader) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateAsciiStream(final int columnIndex, final InputStream 
inputStream, final long length) throws SQLException {
+    public void updateNCharacterStream(final String columnLabel, final Reader 
reader, final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBinaryStream(final int columnIndex, final InputStream 
inputStream, final long length) throws SQLException {
+    public void updateNClob(final int columnIndex, final NClob value) throws 
SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateCharacterStream(final int columnIndex, final Reader 
reader, final long length) throws SQLException {
+    public void updateNClob(final int columnIndex, final Reader reader) throws 
SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateAsciiStream(final String columnLabel, final InputStream 
inputStream, final long length) throws SQLException {
+    public void updateNClob(final int columnIndex, final Reader reader, final 
long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBinaryStream(final String columnLabel, final InputStream 
inputStream, final long length) throws SQLException {
+    public void updateNClob(final String columnLabel, final NClob value) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateCharacterStream(final String columnLabel, final Reader 
reader, final long length) throws SQLException {
+    public void updateNClob(final String columnLabel, final Reader reader) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBlob(final int columnIndex, final InputStream 
inputStream, final long length) throws SQLException {
+    public void updateNClob(final String columnLabel, final Reader reader, 
final long length) throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBlob(final String columnLabel, final InputStream 
inputStream, final long length) throws SQLException {
+    public void updateNString(final int columnIndex, final String value) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateClob(final int columnIndex, final Reader reader, final 
long length) throws SQLException {
+    public void updateNString(final String columnLabel, final String value) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateClob(final String columnLabel, final Reader reader, 
final long length) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateNull(final int columnIndex) throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateNClob(final int columnIndex, final Reader reader, final 
long length) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateNull(final String columnName) throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateNClob(final String columnLabel, final Reader reader, 
final long length) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateObject(final int columnIndex, final Object x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateNCharacterStream(final int columnIndex, final Reader 
reader) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateObject(final int columnIndex, final Object x, final int 
scale)
+      throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateNCharacterStream(final String columnLabel, final Reader 
reader) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateObject(final String columnName, final Object x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateAsciiStream(final int columnIndex, final InputStream 
inputStream) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateObject(final String columnName, final Object x, final 
int scale)
+      throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateBinaryStream(final int columnIndex, final InputStream 
inputStream) throws SQLException {
+    public void updateRef(final int columnIndex, final java.sql.Ref x)
+        throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateCharacterStream(final int columnIndex, final Reader 
reader) throws SQLException {
+    public void updateRef(final String columnName, final java.sql.Ref x)
+        throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateAsciiStream(final String columnLabel, final InputStream 
inputStream) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateRow() throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateBinaryStream(final String columnLabel, final InputStream 
inputStream) throws SQLException {
+    public void updateRowId(final int columnIndex, final RowId value) throws 
SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateCharacterStream(final String columnLabel, final Reader 
reader) throws SQLException {
+    public void updateRowId(final String columnLabel, final RowId value) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateBlob(final int columnIndex, final InputStream 
inputStream) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateShort(final int columnIndex, final short x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateBlob(final String columnLabel, final InputStream 
inputStream) throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateShort(final String columnName, final short x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateClob(final int columnIndex, final Reader reader) throws 
SQLException {
+    public void updateSQLXML(final int columnIndex, final SQLXML value) throws 
SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateClob(final String columnLabel, final Reader reader) 
throws SQLException {
+    public void updateSQLXML(final String columnLabel, final SQLXML value) 
throws SQLException {
         throw new SQLException("Not implemented.");
     }
 
     @Override
-    public void updateNClob(final int columnIndex, final Reader reader) throws 
SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateString(final int columnIndex, final String x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public void updateNClob(final String columnLabel, final Reader reader) 
throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateString(final String columnName, final String x) throws 
SQLException {
+        checkOpen();
     }
 
     @Override
-    public <T> T getObject(final int columnIndex, final Class<T> type) throws 
SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateTime(final int columnIndex, final java.sql.Time x) 
throws SQLException {
+        checkOpen();
     }
 
     @Override
-    public <T> T getObject(final String columnLabel, final Class<T> type)
-            throws SQLException {
-        throw new SQLException("Not implemented.");
+    public void updateTime(final String columnName, final java.sql.Time x) 
throws SQLException {
+        checkOpen();
+    }
+
+    @Override
+    public void updateTimestamp(final int columnIndex, final 
java.sql.Timestamp x) throws SQLException {
+        checkOpen();
+    }
+
+    @Override
+    public void updateTimestamp(final String columnName, final 
java.sql.Timestamp x)
+      throws SQLException {
+        checkOpen();
+    }
+
+    @Override
+    public boolean wasNull() throws SQLException {
+        checkOpen();
+        return false;
     }
 }

Reply via email to