com.rocketsoftware.mvapi.ResultSet
Class MVAPIResultSetStream

java.lang.Object
  extended by com.rocketsoftware.mvapi.ResultSet.AbstractResultSet
      extended by com.rocketsoftware.mvapi.ResultSet.MVResultSet
          extended by com.rocketsoftware.mvapi.ResultSet.MVAPIResultSet
              extended by com.rocketsoftware.mvapi.ResultSet.MVAPIResultSetStream
All Implemented Interfaces:
java.sql.ResultSet

public class MVAPIResultSetStream
extends MVAPIResultSet

Extends MVResultSet with functionality required for the MV API.


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
MVAPIResultSetStream()
          Constructs an empty result set
MVAPIResultSetStream(MVStatement statement, java.lang.String params, java.lang.String[] columns)
          Constructs a result set.
 
Method Summary
 java.lang.String getCurrentRow()
          Returns the current row.
 java.lang.String getString(int columnIndex)
          Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
 boolean next()
          Moves the cursor down one row from its current position.
 
Methods inherited from class com.rocketsoftware.mvapi.ResultSet.MVAPIResultSet
setResults
 
Methods inherited from class com.rocketsoftware.mvapi.ResultSet.MVResultSet
close, first, getColumnCount, getColumns, getRow, getRowCount, getRows, getString, isQuery
 
Methods inherited from class com.rocketsoftware.mvapi.ResultSet.AbstractResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, 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, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getStatement, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVAPIResultSetStream

public MVAPIResultSetStream()
Constructs an empty result set


MVAPIResultSetStream

public MVAPIResultSetStream(MVStatement statement,
                            java.lang.String params,
                            java.lang.String[] columns)
Constructs a result set.

Method Detail

getCurrentRow

public java.lang.String getCurrentRow()
                               throws MVException
Returns the current row.

Overrides:
getCurrentRow in class MVResultSet
Returns:
string the current row
Throws:
MVException - if any errors occur

next

public boolean next()
             throws MVException
Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.

Specified by:
next in interface java.sql.ResultSet
Overrides:
next in class MVResultSet
Returns:
true if the new current row is valid; false if there are no more rows
Throws:
MVException - if a database access error occurs

getString

public java.lang.String getString(int columnIndex)
                           throws MVException
Description copied from class: MVResultSet
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

Specified by:
getString in interface java.sql.ResultSet
Overrides:
getString in class MVResultSet
Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the column value
Throws:
MVException - if current row is not valid