|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.portlet.tool.ResultSetSplitter
public class ResultSetSplitter
A navigation manager for ResultSet.
| Constructor Summary | |
|---|---|
ResultSetSplitter()
|
|
ResultSetSplitter(org.ow2.weblab.core.model.ResultSet rs,
int splitSize,
AnnotationsDescBean annotDesc,
java.lang.String sortMethod)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
currentSplitIsInMemory()
|
int |
getAvaibleSubResourcesNumber()
Get the total result page number for the search according the total number of result. |
int |
getCurrentPosition()
Get the current page index for this search |
org.ow2.weblab.core.model.PieceOfKnowledge |
getCurrentSplitPOK()
|
HitDescriptionBean |
getCurrentWTripleMap()
Get the searchArgs of the current page of the search. |
org.ow2.weblab.core.model.PieceOfKnowledge |
getPOK(int splitNumber)
|
java.lang.String |
getSortMethod()
Sort method accessor |
int |
getTotalNumberOfResources()
return the number of result of the search |
HitDescriptionBean |
getWTripleMap(int splitNumber)
Get the searchArgs of the current page of the search. |
boolean |
isInMemory(int splitNumber)
|
int |
nextPosition()
Change the current page to the next page. |
int |
prevPostion()
Change the current page to the previous page. |
int |
setCurrentPageIndex(int currentPosition)
Set the current page index to a new index. |
void |
updateResultSet(org.ow2.weblab.core.model.ResultSet rs)
Update this splitter with the new resultset without changing the current position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetSplitter()
public ResultSetSplitter(org.ow2.weblab.core.model.ResultSet rs,
int splitSize,
AnnotationsDescBean annotDesc,
java.lang.String sortMethod)
args - the searchArgs corresponding the search.numberOfresults - the number of result fot this searchArgs.| Method Detail |
|---|
public HitDescriptionBean getWTripleMap(int splitNumber)
public HitDescriptionBean getCurrentWTripleMap()
public int nextPosition()
public int prevPostion()
public int getAvaibleSubResourcesNumber()
public int getCurrentPosition()
public int setCurrentPageIndex(int currentPosition)
currentPage -
public int getTotalNumberOfResources()
public boolean isInMemory(int splitNumber)
public boolean currentSplitIsInMemory()
public void updateResultSet(org.ow2.weblab.core.model.ResultSet rs)
rs - public org.ow2.weblab.core.model.PieceOfKnowledge getPOK(int splitNumber)
public org.ow2.weblab.core.model.PieceOfKnowledge getCurrentSplitPOK()
public java.lang.String getSortMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||