|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.converters.webrowset.resultset.AbstractResultSet | +--uk.org.ogsadai.converters.webrowset.resultset.ResultSetForwardOnly
A forward-only implementation of a
java.sql.ResultSet
. This
implementation is suitable for larger result sets as the data is
made available when scrolling through the results.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private java.util.LinkedList |
mBuffer
|
private int |
mBufferSize
|
private boolean |
mClosed
|
private java.util.Vector |
mCurrentRow
|
private int |
mCursor
|
private java.lang.Throwable |
mError
|
Fields inherited from class uk.org.ogsadai.converters.webrowset.resultset.AbstractResultSet |
mMetaData |
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 | |
ResultSetForwardOnly()
|
Method Summary | |
boolean |
absolute(int arg0)
|
void |
afterLast()
|
void |
beforeFirst()
|
boolean |
first()
|
int |
getBufferSize()
Returns the current size of the buffer. |
protected java.lang.String |
getColumn(int column)
Returns the data of a column, |
protected java.util.Vector |
getCurrentRow()
Returns the current row vector. |
java.lang.Throwable |
getError()
Gets the current error state |
java.sql.ResultSetMetaData |
getMetaData()
|
int |
getRow()
|
int |
getType()
|
boolean |
isAfterLast()
|
boolean |
isBeforeFirst()
|
boolean |
isFirst()
|
boolean |
isLast()
|
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
void |
putMetaData(java.sql.ResultSetMetaData metadata)
Process or store the metadata of a WebRowSet expressed as java.sql.ResultSetMetaData . |
void |
putRow(java.util.Vector row)
Process or store a row of a WebRowSet. |
boolean |
relative(int arg0)
|
void |
setBufferSize(int size)
Set the size of the buffer (the maximum number of rows that are being stored). |
void |
setError(java.lang.Throwable error)
Sets an error when there was a problem at the input provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private int mBufferSize
private java.util.LinkedList mBuffer
private boolean mClosed
private java.util.Vector mCurrentRow
private int mCursor
private java.lang.Throwable mError
Constructor Detail |
public ResultSetForwardOnly()
Method Detail |
public void setError(java.lang.Throwable error)
error
- Problem at input provider.public java.lang.Throwable getError()
null
if there is no
error.public void putMetaData(java.sql.ResultSetMetaData metadata) throws java.sql.SQLException
WebRowSetHandler
java.sql.ResultSetMetaData
.
putMetaData
in interface WebRowSetHandler
putMetaData
in class AbstractResultSet
metadata
- The parsed metadata from a WebRowSet.
java.sql.SQLException
- if there is a problem with accessing the
metadata object or processing it.public void putRow(java.util.Vector row)
WebRowSetHandler
putRow
in interface WebRowSetHandler
putRow
in class AbstractResultSet
row
- A Vector
of objects each representing a column
value.public boolean next() throws java.sql.SQLException
next
in interface java.sql.ResultSet
next
in class AbstractResultSet
java.sql.SQLException
public void setBufferSize(int size)
size
- Number of rows to buffer.public int getBufferSize()
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.ResultSet
getMetaData
in class AbstractResultSet
java.sql.SQLException
protected java.util.Vector getCurrentRow()
protected java.lang.String getColumn(int column) throws java.sql.SQLException
AbstractResultSet
getColumn
in class AbstractResultSet
column
- Column index.
java.sql.SQLException
- if there was a problem retrieving the data.public int getRow() throws java.sql.SQLException
getRow
in interface java.sql.ResultSet
getRow
in class AbstractResultSet
java.sql.SQLException
public int getType() throws java.sql.SQLException
getType
in interface java.sql.ResultSet
getType
in class AbstractResultSet
java.sql.SQLException
public void afterLast() throws java.sql.SQLException
afterLast
in interface java.sql.ResultSet
afterLast
in class AbstractResultSet
java.sql.SQLException
public void beforeFirst() throws java.sql.SQLException
beforeFirst
in interface java.sql.ResultSet
beforeFirst
in class AbstractResultSet
java.sql.SQLException
public boolean first() throws java.sql.SQLException
first
in interface java.sql.ResultSet
first
in class AbstractResultSet
java.sql.SQLException
public boolean isAfterLast() throws java.sql.SQLException
isAfterLast
in interface java.sql.ResultSet
isAfterLast
in class AbstractResultSet
java.sql.SQLException
public boolean isBeforeFirst() throws java.sql.SQLException
isBeforeFirst
in interface java.sql.ResultSet
isBeforeFirst
in class AbstractResultSet
java.sql.SQLException
public boolean isFirst() throws java.sql.SQLException
isFirst
in interface java.sql.ResultSet
isFirst
in class AbstractResultSet
java.sql.SQLException
public boolean isLast() throws java.sql.SQLException
isLast
in interface java.sql.ResultSet
isLast
in class AbstractResultSet
java.sql.SQLException
public boolean last() throws java.sql.SQLException
last
in interface java.sql.ResultSet
last
in class AbstractResultSet
java.sql.SQLException
public boolean previous() throws java.sql.SQLException
previous
in interface java.sql.ResultSet
previous
in class AbstractResultSet
java.sql.SQLException
public boolean absolute(int arg0) throws java.sql.SQLException
absolute
in interface java.sql.ResultSet
absolute
in class AbstractResultSet
java.sql.SQLException
public boolean relative(int arg0) throws java.sql.SQLException
relative
in interface java.sql.ResultSet
relative
in class AbstractResultSet
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |