|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.rec.jdbc.QueryResults
A disconnected JDBC result set. Feed it a ResultSet, close the ResultSet, then access the data that has been copied out of the ResultSet in a random access (rather than serial) manner, or squirt it down the wire to another tier.
Nested Class Summary | |
static class |
QueryResults.QueryResultImpl
The implementation of QueryResult. |
Field Summary | |
static String |
COPYRIGHT
|
static String |
LICENSE
|
static String |
REVISION
|
Constructor Summary | |
QueryResults(ResultSet resultSet)
Constructs a new QueryResults from a particular ResultSet. |
Method Summary | |
QueryResult |
get(int index)
Looks up the QueryResult at a particular index in the results. |
int |
getColumnCount()
Determines the number of columns in this QueryResults. |
String |
getColumnName(int columnIndex)
Looks up the name of the column at a particular column index. |
boolean |
isEmpty()
Determines if this QueryResults is empty or not. |
int |
size()
Determines the number of elements in this QueryResults. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String COPYRIGHT
public static final String LICENSE
public static final String REVISION
Constructor Detail |
public QueryResults(ResultSet resultSet) throws SQLException
resultSet
- the result set from which to take the data
NullPointerException
- if (resultSet) is null
SQLException
Method Detail |
public int getColumnCount()
public String getColumnName(int columnIndex)
columnIndex
- the index at which to look for the desired column
IndexOutOfBoundsException
- if (columnIndex) is out of range
(columnIndex < 0 ||
getColumnCount() <= columnIndex)public boolean isEmpty()
public int size()
public QueryResult get(int index)
index
- the index at which to look for the desired QueryResult
IndexOutOfBoundsException
- if the index is out of range (index
< 0 || size() <= index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |