|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.search.query.entity.EntityQuery<T>
public abstract class EntityQuery<T>
| Field Summary | |
|---|---|
static int |
ALL_RESULTS
Flag to indicate that an EntityQuery should retrieve all results. |
static int |
MAX_MAX_RESULTS
This is the recommended maximum number of 'max' results the system will allow you to return. |
| Constructor Summary | |
|---|---|
EntityQuery(java.lang.Class<T> returnType,
EntityDescriptor entityDescriptor,
SearchRestriction searchRestriction,
int startIndex,
int maxResults)
|
|
EntityQuery(EntityQuery<T> query,
int startIndex,
int maxResults)
|
|
EntityQuery(EntityQuery query,
java.lang.Class<T> returnType)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
EntityDescriptor |
getEntityDescriptor()
|
int |
getMaxResults()
The maximum number of elements to return. |
java.lang.Class<T> |
getReturnType()
The type of elements to return. |
SearchRestriction |
getSearchRestriction()
Restrictions to apply to the query. |
int |
getStartIndex()
The index of the first element to return. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_MAX_RESULTS
public static final int ALL_RESULTS
WARNING: using this flag could retrieve thousands or millions of entities. Misuse can cause massive performance problems. This flag should only ever be used in exceptional circumstances.
If you need to find "all" entities, then consider making multiple successive calls to Crowd to receive partial results. That way, the entire result set is never stored in memory on the Crowd server at any one time.
| Constructor Detail |
|---|
public EntityQuery(java.lang.Class<T> returnType,
EntityDescriptor entityDescriptor,
SearchRestriction searchRestriction,
int startIndex,
int maxResults)
public EntityQuery(EntityQuery query,
java.lang.Class<T> returnType)
public EntityQuery(EntityQuery<T> query,
int startIndex,
int maxResults)
| Method Detail |
|---|
public EntityDescriptor getEntityDescriptor()
public SearchRestriction getSearchRestriction()
Query
getSearchRestriction in interface Query<T>public int getStartIndex()
Query
getStartIndex in interface Query<T>public int getMaxResults()
Query
getMaxResults in interface Query<T>public java.lang.Class<T> getReturnType()
Query
getReturnType in interface Query<T>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||