SilverStream
Application Server 3.5

com.sssw.rt.util
Interface AgiRowCursorSort

All Known Implementing Classes:
AgcData, AgoData, AgoVectorRowCursor

public interface AgiRowCursorSort

An AgiRowCursor can implement this interface to allow sorting of its data. The intent is to support sorting of locally cached data, rather than a re-query of the data, although the implementation is up to the AgiRowCursor, of course.

See Also:
AgiRowCursor

Method Summary
 void rowCursorSort(String bandname, String[] cols, boolean[] desc)
          Sort local cached data.
 

Method Detail

rowCursorSort

public void rowCursorSort(String bandname,
                          String[] cols,
                          boolean[] desc)
                   throws AgoSecurityException,
                          AgoTransientSystemException,
                          AgoUnrecoverableSystemException
Sort local cached data. Because the row cursor may not yet have retrieved all the data into the local cache, this method throws the same exceptions as navigation methods.
Parameters:
bandname - The band of data to sort. If the bandname is null, sort data at the top level. If the bandname is a subband, sort child data of each row.
cols - Array of column names. Sorts first by cols[0], then, if values are the same, by cols[1], etc.
desc - Array of descending flags. If null, sorts all columns ascending.
Example:
 	try
 	{
 		String cols[] = {"Lastname", "Firstname"};
 		agcData1.rowCursorSort(null, cols, null);
 	}
 	catch (Exception e)
 	{
 		agDialog.displayError(e);
 	}
 

SilverStream
Application Server 3.5