|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.webservice.AbstractQuerySession
public abstract class AbstractQuerySession
An abstract implementation of the query session that keeps track of the paging data.
It provides support for paging of results of Serializable[]
instances.
Constructor Summary | |
---|---|
AbstractQuerySession(long maxResults,
long batchSize,
ServerQuery query)
Common constructor that initialises the session's id and batch size |
Method Summary | |
---|---|
java.lang.String |
getId()
Retrieves the id this query session can be identified as |
protected java.lang.Object[] |
getNextResults(java.lang.Object[] allResults)
Helper method to page through the results. |
ServerQuery |
getQuery()
|
protected java.lang.Object |
getQueryResults(org.alfresco.service.ServiceRegistry serviceRegistry)
Helper method to get the results. |
boolean |
haveMoreResults()
Check if the session is expecting more results. |
protected abstract java.lang.Object[] |
makeArray(int size)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.webservice.QuerySession |
---|
getNextResults |
Constructor Detail |
---|
public AbstractQuerySession(long maxResults, long batchSize, ServerQuery query)
maxResults
- the maximum number of results to retrieve for the query. This is not the page
size, which is normally significantly smaller.batchSize
- the batch size this session will usequery
- the query that generates the resultsMethod Detail |
---|
public java.lang.String getId()
getId
in interface QuerySession
public ServerQuery getQuery()
protected java.lang.Object getQueryResults(org.alfresco.service.ServiceRegistry serviceRegistry)
serviceRegistry
- the
public boolean haveMoreResults()
haveMoreResults
in interface QuerySession
protected abstract java.lang.Object[] makeArray(int size)
protected final java.lang.Object[] getNextResults(java.lang.Object[] allResults)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |