| java.util.Vector org.glasser.sql.ResultSetBuffer
ResultSetBuffer | public class ResultSetBuffer extends Vector (Code) | | |
DEFAULT_READAHEAD | final protected static int DEFAULT_READAHEAD(Code) | | |
columnCount | protected int columnCount(Code) | | |
columnTypes | protected int[] columnTypes(Code) | | |
cursor | protected int cursor(Code) | | |
debug | public static boolean debug(Code) | | |
descendingSort | protected boolean descendingSort(Code) | | This indicates whether the last sort applied to the buffer was in
descending order or not.
|
endOfResultsReached | protected boolean endOfResultsReached(Code) | | |
nonDisplayableColumnStrings | protected String[] nonDisplayableColumnStrings(Code) | | |
readAhead | protected int readAhead(Code) | | |
readAheadEnabled | protected boolean readAheadEnabled(Code) | | |
sortColumn | protected int sortColumn(Code) | | This is the index of the last column on which the buffer was sorted.
Its value is -1 if the buffer has not yet been sorted.
|
ResultSetBuffer | public ResultSetBuffer(Column[] columns, Class[] columnClasses)(Code) | | Constructs an empty ResultSetBuffer.
|
ResultSetBuffer | public ResultSetBuffer(Column[] columns)(Code) | | Constructs an empty ResultSetBuffer.
|
getColumnClasses | public Class[] getColumnClasses()(Code) | | |
getCursor | public int getCursor()(Code) | | |
isAtBeginning | public boolean isAtBeginning()(Code) | | |
isAtEnd | public boolean isAtEnd()(Code) | | |
isEndOfResultsReached | public boolean isEndOfResultsReached()(Code) | | |
isReadAheadEnabled | public boolean isReadAheadEnabled()(Code) | | |
maybeSetCursor | public synchronized boolean maybeSetCursor(int value)(Code) | | This method can be called with values that are greater than the current
number of records in the buffer. If the value is out of range, it will
attempt to read in enough records from the ResultSet so that the cursor
can be set to the new value. If it is successful, true is returned, if
not, false is returned.
|
removeCurrentRow | public void removeCurrentRow() throws SQLException(Code) | | Removes the row at the cursor and repositions the cursor
if necessary. If the buffer is empty after the remove, the cursor
is set at -1.
|
setCursor | public void setCursor(int value)(Code) | | |
setReadAheadEnabled | public void setReadAheadEnabled(boolean b)(Code) | | |
sort | public void sort(int columnIndex, boolean sortDescending)(Code) | | |
sort | public boolean sort(int columnIndex)(Code) | | Sorts the buffer on the indicated column, and returns true if the sort was in
descending order, or false if it was in ascending order. The order
will usually be ascending, unless the same column is sorted multiple times
consecutively, in which case the sort order is reversed each time.
|
|
|