|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.ResultSetAndUpdateCountCollection
public class ResultSetAndUpdateCountCollection
Contains a set of result sets and update counts that are returned by executing a query.
| Constructor Summary | |
|---|---|
ResultSetAndUpdateCountCollection(java.sql.ResultSet rs,
AbstractWabitObject parentObject)
This will wrap a given result set in a ResultSetAndUpdateCountCollection. |
|
ResultSetAndUpdateCountCollection(ResultSetAndUpdateCountCollection rsCollection)
Returns a copy of the given result set collection. |
|
ResultSetAndUpdateCountCollection(java.sql.Statement statement,
boolean isNextAResultSet,
boolean isStreaming,
int streamingRowLimit,
AbstractWabitObject parent)
This constructor will iterate through the statement's results and collect a set of result sets and update counts. |
|
| Method Summary | |
|---|---|
void |
addResultSetListener(StreamingResultSetCollectionListener l)
The added listener will be notified when all of the streaming queries have stopped. |
void |
cleanup()
|
int |
getCountOfUpdateCounts()
Returns the number of update counts in this collection. |
ca.sqlpower.sql.CachedRowSet |
getFirstNonNullResultSet()
Returns the first non-null result set contained in this collection. |
ca.sqlpower.sql.CachedRowSet |
getFirstResultSet()
Gets the first result set from the collection of result sets. |
int |
getResultSetCount()
Returns the number of null and non-null result set entries in this collection. |
java.util.List<ca.sqlpower.sql.CachedRowSet> |
getResultSets()
Gets all of the result sets contained by this collection. |
java.util.List<java.lang.Integer> |
getUpdateCounts()
Returns an unmodifiable list of the update counts. |
void |
removeResultSetListener(StreamingResultSetCollectionListener l)
The removed listener will no longer be notified when all of the streaming queries have stopped streaming in this collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetAndUpdateCountCollection(java.sql.Statement statement,
boolean isNextAResultSet,
boolean isStreaming,
int streamingRowLimit,
AbstractWabitObject parent)
throws java.sql.SQLException
If the CachedRowSet can be set to unmodifiable in the future the
CachedRowSets created in this class should be unmodifiable.
statement - The statement to get results from.isNextAResultSet - True if the first result from the statement is a result set.
False if the first result from the statement is an update
count.isStreaming - True if the result sets in this statement are streaming, false
otherwise.streamingRowLimit - The number of rows to retain in the result set that is
streaming values.parent - Uses the parent's runInForeground method to fire all
events on the foreground thread.
java.sql.SQLException
public ResultSetAndUpdateCountCollection(java.sql.ResultSet rs,
AbstractWabitObject parentObject)
throws java.sql.SQLException
ResultSetAndUpdateCountCollection. The result set stored will be
scrollable and contain no resources back to the original result set.
rs - The result set to wrap. This cannot be a streaming result set.parentObject - The parent object to fire events on an appropriate foreground
thread.
java.sql.SQLException - Thrown if there are problems iterating over the result set.public ResultSetAndUpdateCountCollection(ResultSetAndUpdateCountCollection rsCollection)
| Method Detail |
|---|
public void addResultSetListener(@Nonnull
StreamingResultSetCollectionListener l)
public void removeResultSetListener(StreamingResultSetCollectionListener l)
public ca.sqlpower.sql.CachedRowSet getFirstResultSet()
public ca.sqlpower.sql.CachedRowSet getFirstNonNullResultSet()
CachedRowSet.createShared()public int getResultSetCount()
public java.util.List<ca.sqlpower.sql.CachedRowSet> getResultSets()
public int getCountOfUpdateCounts()
public java.util.List<java.lang.Integer> getUpdateCounts()
public void cleanup()
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||