|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.portal.portlets.browser.DatabaseBrowserIterator
A class for iterating over the window. The window constitutes the selection of rows being displayed to the user from the List storing all the ResultSet.
| Constructor Summary | |
DatabaseBrowserIterator(java.util.List result,
java.util.List columnTitles,
java.util.List columnTypes,
int pageSize)
Constructor for the database browser iterator |
|
| Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
|
int |
getBottom()
This method returns the last index of the row in the window displayed. |
java.util.List |
getResultSet()
This method returns the result set. |
int |
getResultSetSize()
This method returns the number of rows in the result set. |
java.util.List |
getResultSetTitleList()
This method returns the List containg the column labels of the result set. |
java.util.List |
getResultSetTypesList()
This method returns the List containg the column type names of the result set. |
int |
getTop()
This method returns the index of the row to which the cursor is pointing at. |
int |
getWindowSize()
This method returns the window size. |
boolean |
hasNext()
Returns true if the iteration has more elements |
java.lang.Object |
next()
Returns the next element in the iteration |
void |
remove()
Logs as info - since remove operation is not supported by this Iterator. |
void |
setTop(int start)
This method points the cursor to the index provided. |
void |
sort(java.lang.String columnName)
This method sorts the result set according to the value of the column as specified by the parameter column name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public DatabaseBrowserIterator(java.util.List result,
java.util.List columnTitles,
java.util.List columnTypes,
int pageSize)
result - The List containg all the rows from the resultSet.columnTitles - The List containg all the columnLabels from a resultSet.pageSize - The number of rows to be displayed in a window configured by the user.| Method Detail |
public java.util.List getResultSet()
getResultSet in interface BrowserIteratorpublic int getResultSetSize()
getResultSetSize in interface BrowserIteratorpublic java.util.List getResultSetTitleList()
getResultSetTitleList in interface BrowserIteratorpublic java.util.List getResultSetTypesList()
getResultSetTypesList in interface BrowserIteratorTypespublic int getTop()
getTop in interface BrowserIteratorpublic void setTop(int start)
setTop in interface BrowserIteratorstart - Index to which cursor should point topublic int getBottom()
getBottom in interface BrowserIteratorpublic int getWindowSize()
getWindowSize in interface BrowserIteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic void sort(java.lang.String columnName)
sort in interface BrowserIterator
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||