com.atlassian.crowd.search.query.entity
Class EntityQuery<T>
java.lang.Object
com.atlassian.crowd.search.query.entity.EntityQuery<T>
- All Implemented Interfaces:
- Query<T>
- Direct Known Subclasses:
- AliasQuery, ApplicationQuery, DirectoryQuery, GroupQuery, TokenQuery, UserQuery
public abstract class EntityQuery<T>
- extends java.lang.Object
- implements Query<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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MAX_MAX_RESULTS
public static final int MAX_MAX_RESULTS
- This is the recommended maximum number of 'max' results the system will allow you to return. This value is
NOT enforced. ApplicationServiceGeneric often retrieves (startIndex + maxResults) number of
results which breaks this MAX_MAX_RESULTS.
- See Also:
- Constant Field Values
ALL_RESULTS
public static final int ALL_RESULTS
- Flag to indicate that an EntityQuery should retrieve 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.
- See Also:
- Constant Field Values
EntityQuery
public EntityQuery(java.lang.Class<T> returnType,
EntityDescriptor entityDescriptor,
SearchRestriction searchRestriction,
int startIndex,
int maxResults)
EntityQuery
public EntityQuery(EntityQuery query,
java.lang.Class<T> returnType)
EntityQuery
public EntityQuery(EntityQuery<T> query,
int startIndex,
int maxResults)
getEntityDescriptor
public EntityDescriptor getEntityDescriptor()
getSearchRestriction
public SearchRestriction getSearchRestriction()
- Specified by:
getSearchRestriction in interface Query<T>
getStartIndex
public int getStartIndex()
- Specified by:
getStartIndex in interface Query<T>
getMaxResults
public int getMaxResults()
- Specified by:
getMaxResults in interface Query<T>
getReturnType
public java.lang.Class<T> getReturnType()
- Specified by:
getReturnType in interface Query<T>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012 Atlassian. All Rights Reserved.