T - paged result value typeWikittyQuery@Deprecated public class PagedResult<T> extends Object implements Serializable, Iterable<T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
criteriaName
Deprecated.
nom du critere qui a ete uitilise (peut-etre null) si le critete n'avait pas de nom
|
protected Map<String,List<FacetTopic>> |
facets
Deprecated.
facet asked or null if no facet
|
protected Map<String,Map<String,FacetTopic>> |
facetsAsMap
Deprecated.
facet asked of null if no facet, FacetTopic are put in map with key topic name,
To use this variable, you must used getter, because, this variable is
lazy loaded from facets variable.
|
protected int |
firstIndice
Deprecated.
indice element in global search result
|
protected int |
numFound
Deprecated.
total number of result if we call the query for all possible result
|
protected String |
queryString
Deprecated.
query really executed
|
protected List<T> |
results
Deprecated.
list of result in the wanted interval
|
| Constructor and Description |
|---|
PagedResult(String criteriaName,
int firstIndice,
int numFound,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results)
Deprecated.
Init paged result.
|
| Modifier and Type | Method and Description |
|---|---|
PagedResult<Wikitty> |
cast(String securityToken,
WikittyService ws)
Deprecated.
Convert all result to the wikitty type and return new PagedResult with
this new result list.
|
<E extends BusinessEntityImpl> |
cast(WikittyProxy proxy,
Class<E> clazz)
Deprecated.
Call
cast(WikittyProxy, Class, boolean) with
autoconvert = true |
<E extends BusinessEntityImpl> |
cast(WikittyProxy proxy,
Class<E> clazz,
boolean autoconvert)
Deprecated.
Convert all result to the wanted type and return new PagedResult with
this new result list.
|
T |
get(int i)
Deprecated.
Return element at index.
|
List<T> |
getAll()
Deprecated.
Return unmodifiable list of all result.
|
String |
getCriteriaName()
Deprecated.
|
Collection<String> |
getFacetNames()
Deprecated.
Return name of all facet used in query.
|
Map<String,List<FacetTopic>> |
getFacets()
Deprecated.
Get map represent facets.
|
Map<String,Map<String,FacetTopic>> |
getFacetsAsMap()
Deprecated.
|
T |
getFirst()
Deprecated.
Return the first element in result
Can throw an exception if no element available
|
int |
getFirstIndice()
Deprecated.
|
int |
getNumFound()
Deprecated.
|
String |
getQueryString()
Deprecated.
|
List<FacetTopic> |
getTopic(String facetName)
Deprecated.
Return all topic for the specified facet.
|
FacetTopic |
getTopic(String facetName,
String topicName)
Deprecated.
Return topic for the specified facet and topic name.
|
int |
getTopicCount(String facetName,
String topicName)
Deprecated.
Return topic count for the specified facet and topic name.
|
Iterator<T> |
iterator()
Deprecated.
Iterate on result, same as getAll().iterator().
|
int |
size()
Deprecated.
Return the number of result in this object.
|
protected String criteriaName
protected int firstIndice
protected int numFound
protected String queryString
protected Map<String,List<FacetTopic>> facets
protected Map<String,Map<String,FacetTopic>> facetsAsMap
public PagedResult(String criteriaName, int firstIndice, int numFound, String queryString, Map<String,List<FacetTopic>> facets, List<T> results)
firstIndice - indice element in global search resultnumFound - total number of result if we call the query for all possible resultqueryString - query really executedfacets - facet asked or null if no facetresults - list of result in the wanted intervalpublic <E extends BusinessEntityImpl> PagedResult<E> cast(WikittyProxy proxy, Class<E> clazz)
cast(WikittyProxy, Class, boolean) with
autoconvert = trueproxy - used to retrieve securityToken and WikittyServiceclazz - target PagedResult typepublic PagedResult<Wikitty> cast(String securityToken, WikittyService ws)
securityToken - security tokenws - wikitty servicepublic <E extends BusinessEntityImpl> PagedResult<E> cast(WikittyProxy proxy, Class<E> clazz, boolean autoconvert)
E - class to cast intoproxy - used to retrieve securityToken and WikittyServiceautoconvert - if autoconvert is false and object don't all needed
extension, object is not put in the resultpublic String getCriteriaName()
public int getFirstIndice()
public int getNumFound()
public String getQueryString()
public Collection<String> getFacetNames()
public List<FacetTopic> getTopic(String facetName)
facetName - name of the wanted facetpublic FacetTopic getTopic(String facetName, String topicName)
facetName - name of the wanted facettopicName - name of the wanted topicpublic int getTopicCount(String facetName, String topicName)
facetName - name of the wanted facettopicName - name of the wanted topicpublic Map<String,List<FacetTopic>> getFacets()
public Map<String,Map<String,FacetTopic>> getFacetsAsMap()
public T getFirst()
public T get(int i)
i - indexpublic List<T> getAll()
public int size()
Copyright © 2009–2014 CodeLutin. All rights reserved.