simpledb.remote
Class SimpleResultSet

java.lang.Object
  extended by simpledb.remote.ResultSetAdapter
      extended by simpledb.remote.SimpleResultSet
All Implemented Interfaces:
ResultSet, Wrapper

public class SimpleResultSet
extends ResultSetAdapter

An adapter class that wraps RemoteResultSet. Its methods do nothing except transform RemoteExceptions into SQLExceptions.

Author:
Edward Sciore

Field Summary
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
SimpleResultSet(RemoteResultSet s)
           
 
Method Summary
 void close()
           
 int getInt(String fldname)
           
 ResultSetMetaData getMetaData()
           
 String getString(String fldname)
           
 boolean next()
           
 
Methods inherited from class simpledb.remote.ResultSetAdapter
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResultSet

public SimpleResultSet(RemoteResultSet s)
Method Detail

next

public boolean next()
             throws SQLException
Specified by:
next in interface ResultSet
Overrides:
next in class ResultSetAdapter
Throws:
SQLException

getInt

public int getInt(String fldname)
           throws SQLException
Specified by:
getInt in interface ResultSet
Overrides:
getInt in class ResultSetAdapter
Throws:
SQLException

getString

public String getString(String fldname)
                 throws SQLException
Specified by:
getString in interface ResultSet
Overrides:
getString in class ResultSetAdapter
Throws:
SQLException

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Specified by:
getMetaData in interface ResultSet
Overrides:
getMetaData in class ResultSetAdapter
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface ResultSet
Overrides:
close in class ResultSetAdapter
Throws:
SQLException


Copyright © 2011. All Rights Reserved.