Package com.veeva.vault.sdk.api.query
Interface QueryCountRequest.Builder
- Enclosing interface:
- QueryCountRequest
public static interface QueryCountRequest.Builder
Creates an instance of
QueryCountRequest. Calling at least one method to set
the query is required.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Retrieves the completedQueryCountRequest.Sets the VQLQuery, replacing any previously set Query or query string.withQueryFacetRequest(QueryFacetRequest queryFacetRequest) Sets theQueryFacetRequest, replacing any previously setQueryFacetRequest.withQueryString(String queryString) Sets the VQL query string, replacing any previously set query string orQuery.withTokenRequest(TokenRequest tokenRequest, QueryEscapeOverride... escapeOverrides) Sets theTokenRequestandQueryEscapeOverride(s), replacing any previously setTokenRequestandQueryEscapeOverride(s).
-
Method Details
-
withQuery
Sets the VQLQuery, replacing any previously set Query or query string.- Parameters:
query- VQL query to be executed- Returns:
- this Builder
-
withQueryString
Sets the VQL query string, replacing any previously set query string orQuery.- Parameters:
queryString- VQL query string to be executed- Returns:
- this Builder
-
withTokenRequest
QueryCountRequest.Builder withTokenRequest(TokenRequest tokenRequest, QueryEscapeOverride... escapeOverrides) Sets theTokenRequestandQueryEscapeOverride(s), replacing any previously setTokenRequestandQueryEscapeOverride(s).Filters on a
Stringfield support tokens containing all the types listed inTokenRequestexcept forList. A filter using CONTAINS only supports a token containing aList. All other fields support tokens containing either their type or aString.Vault escapes all special VQL characters in
Stringtokens if escape overrides are not provided.- Parameters:
tokenRequest- a token request containing all custom tokens used in the queryescapeOverrides- overrides(s) indicating which characters not to escape- Returns:
- this Builder
-
withQueryFacetRequest
Sets theQueryFacetRequest, replacing any previously setQueryFacetRequest.- Parameters:
queryFacetRequest- a request containing the fields to facet on and options for running the facet query- Returns:
- this Builder
-
build
QueryCountRequest build()Retrieves the completedQueryCountRequest.The query must be non-null.
- Returns:
- the completed QueryCountRequest
-