public final class Query extends Operation implements Comparable<Query>
Modifier and Type | Class and Description |
---|---|
static class |
Query.Builder
Builder to help construct the Read.
|
Modifier and Type | Method and Description |
---|---|
protected void |
allocateToResource(Resource.Builder resourceBuilder)
Allocates the Query operation type to the given Resource Builder.
|
int |
compareTo(Query query)
Compares two queries.
|
boolean |
equals(Object o) |
static Query |
fromAnnotation(Query query,
Method annotated,
ApiDescription descriptor,
Class<?> relativeType)
Builds a Query object from the data stored in the annotation.
|
CountPolicy[] |
getCountPolicies()
Getter of the supported paging policies.
|
PagingMode[] |
getPagingModes()
Getter of the paging modes.
|
String[] |
getQueryableFields()
Getter of the queryable fields.
|
String |
getQueryId()
Getter of the query id.
|
String[] |
getSupportedSortKeys()
Getter of the supported sort keys.
|
QueryType |
getType()
Getter of the query type.
|
int |
hashCode() |
static Query.Builder |
query()
Creates a new builder for Query.
|
getApiErrors, getDescription, getParameters, getStability, getSupportedLocales
public QueryType getType()
public PagingMode[] getPagingModes()
public CountPolicy[] getCountPolicies()
public String getQueryId()
public String[] getQueryableFields()
public String[] getSupportedSortKeys()
public static Query.Builder query()
protected void allocateToResource(Resource.Builder resourceBuilder)
allocateToResource
in class Operation
resourceBuilder
- - Resource Builder to add the operationpublic static Query fromAnnotation(Query query, Method annotated, ApiDescription descriptor, Class<?> relativeType)
query
- The annotation that stores the data.annotated
- The method that the annotation was found on.descriptor
- The root descriptor to add definitions to.relativeType
- The type relative to which schema resources should be resolved.public int compareTo(Query query)
compareTo
in interface Comparable<Query>
query
- Query to compare to0
if the argument string is equal to
this string; a value less than 0
if this string
is lexicographically less than the string argument; and a
value greater than 0
if this string is
lexicographically greater than the string argument.Copyright © 2010-2018, ForgeRock All Rights Reserved.