uk.org.ogsadai.converters.webrowset.resultset
Class ResultSetScrollable
java.lang.Object
|
+--uk.org.ogsadai.converters.webrowset.resultset.AbstractResultSet
|
+--uk.org.ogsadai.converters.webrowset.resultset.ResultSetScrollable
- All Implemented Interfaces:
- java.sql.ResultSet, WebRowSetHandler
- public class ResultSetScrollable
- extends AbstractResultSet
An insensitive scrollable implementation of a java.sql.ResultSet
. This implementation is suitable for smaller result sets as the complete data is held in memory.
- Author:
- The OGSA-DAI Team.
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 |
Methods inherited from class uk.org.ogsadai.converters.webrowset.resultset.AbstractResultSet |
cancelRowUpdates, clearWarnings, close, 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, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, moveToCurrentRow, moveToInsertRow, putMetaData, refreshRow, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
- See Also:
- Constant Field Values
mData
private java.util.LinkedList mData
-
mLast
private int mLast
-
mCursor
private int mCursor
-
mCurrentRow
private java.util.Vector mCurrentRow
-
ResultSetScrollable
public ResultSetScrollable()
putRow
public void putRow(java.util.Vector row)
- Description copied from interface:
WebRowSetHandler
-
Process or store a row of a WebRowSet.
-
- Specified by:
putRow
in interface WebRowSetHandler
- Specified by:
putRow
in class AbstractResultSet
-
- Parameters:
row
- A Vector
of objects each representing a column value.
next
public boolean next()
-
- Specified by:
next
in interface java.sql.ResultSet
- Specified by:
next
in class AbstractResultSet
-
getCurrentRow
public java.util.Vector getCurrentRow()
-
Gets the values in the current row.
-
- Returns:
- current row
beforeFirst
public void beforeFirst()
-
- Specified by:
beforeFirst
in interface java.sql.ResultSet
- Specified by:
beforeFirst
in class AbstractResultSet
-
afterLast
public void afterLast()
throws java.sql.SQLException
-
- Specified by:
afterLast
in interface java.sql.ResultSet
- Specified by:
afterLast
in class AbstractResultSet
-
java.sql.SQLException
getColumn
protected java.lang.String getColumn(int column)
throws java.sql.SQLException
- Description copied from class:
AbstractResultSet
-
Returns the data of a column,
-
- Specified by:
getColumn
in class AbstractResultSet
-
- Parameters:
column
- Column index.
- Returns:
- data
- Throws:
java.sql.SQLException
- if there was a problem retrieving the data.
getRow
public int getRow()
throws java.sql.SQLException
-
- Specified by:
getRow
in interface java.sql.ResultSet
- Specified by:
getRow
in class AbstractResultSet
-
java.sql.SQLException
getType
public int getType()
throws java.sql.SQLException
-
- Specified by:
getType
in interface java.sql.ResultSet
- Specified by:
getType
in class AbstractResultSet
-
java.sql.SQLException
first
public boolean first()
throws java.sql.SQLException
-
- Specified by:
first
in interface java.sql.ResultSet
- Specified by:
first
in class AbstractResultSet
-
java.sql.SQLException
isAfterLast
public boolean isAfterLast()
throws java.sql.SQLException
-
- Specified by:
isAfterLast
in interface java.sql.ResultSet
- Specified by:
isAfterLast
in class AbstractResultSet
-
java.sql.SQLException
isBeforeFirst
public boolean isBeforeFirst()
throws java.sql.SQLException
-
- Specified by:
isBeforeFirst
in interface java.sql.ResultSet
- Specified by:
isBeforeFirst
in class AbstractResultSet
-
java.sql.SQLException
isFirst
public boolean isFirst()
throws java.sql.SQLException
-
- Specified by:
isFirst
in interface java.sql.ResultSet
- Specified by:
isFirst
in class AbstractResultSet
-
java.sql.SQLException
isLast
public boolean isLast()
throws java.sql.SQLException
-
- Specified by:
isLast
in interface java.sql.ResultSet
- Specified by:
isLast
in class AbstractResultSet
-
java.sql.SQLException
last
public boolean last()
throws java.sql.SQLException
-
- Specified by:
last
in interface java.sql.ResultSet
- Specified by:
last
in class AbstractResultSet
-
java.sql.SQLException
previous
public boolean previous()
throws java.sql.SQLException
-
- Specified by:
previous
in interface java.sql.ResultSet
- Specified by:
previous
in class AbstractResultSet
-
java.sql.SQLException
absolute
public boolean absolute(int row)
throws java.sql.SQLException
-
- Specified by:
absolute
in interface java.sql.ResultSet
- Specified by:
absolute
in class AbstractResultSet
-
java.sql.SQLException
relative
public boolean relative(int arg0)
throws java.sql.SQLException
-
- Specified by:
relative
in interface java.sql.ResultSet
- Specified by:
relative
in class AbstractResultSet
-
java.sql.SQLException