Class RequestMultiple
java.lang.Object
fr.gouv.vitam.common.database.builder.request.AbstractRequest
fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
- Direct Known Subclasses:
DeleteMultiQuery
,InsertMultiQuery
,SelectMultiQuery
,UpdateMultiQuery
abstract class for multi query request
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal RequestMultiple
addQueries
(Query... queries) final RequestMultiple
addRoots
(com.fasterxml.jackson.databind.node.ArrayNode rootContent) final RequestMultiple
default implements of getActionsboolean
default implements of getAllProjectioncom.fasterxml.jackson.databind.JsonNode
getData()
default implements of getDatagetFacetsprotected final com.fasterxml.jackson.databind.node.ObjectNode
getFinal()
Get the json final of requestfinal int
final Query
getNthQuery
(int nth) com.fasterxml.jackson.databind.node.ObjectNode
default implements of getProjectiongetRoots()
Getter for thresholdfinal RequestMultiple
parseRoots
(String roots) reset()
final RequestMultiple
final RequestMultiple
void
setFacetsSet the query of request: in case of multi-query request: re-initialize list of queryvoid
setThreshold
(Long threshold) Setter for thresholdtoString()
Methods inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
addHintFilter, addHintFilter, getFilter, parseFilter, resetFilter, resetHintFilter, selectAddOrderByAscFilter, selectAddOrderByDescFilter, selectAddOrderByFilter, selectAddProjection, selectAddUnusedProjection, selectAddUsedProjection, selectGetAllProjection, selectGetFinalSelect, selectGetProjection, selectParseLimitFilter, selectParseOrderByFilter, selectParseProjection, selectReset, selectResetLimitFilter, selectResetOrderByFilter, selectResetUsedProjection, selectSetFilter, selectSetLimitFilter, selectSetLimitFilter, selectSetProjection, selectSetScrollFilter, setFilter
-
Field Details
-
roots
-
queries
-
facets
-
threshold
-
-
Constructor Details
-
RequestMultiple
public RequestMultiple()
-
-
Method Details
-
resetQueries
- Returns:
- this Request
-
resetRoots
- Returns:
- this Request
-
reset
- Overrides:
reset
in classAbstractRequest
- Returns:
- this Request
-
addQueries
- Parameters:
queries
- list of query- Returns:
- this Request
- Throws:
InvalidCreateOperationException
- when query is invalid
-
setQuery
Description copied from class:AbstractRequest
Set the query of request: in case of multi-query request: re-initialize list of query- Specified by:
setQuery
in classAbstractRequest
- Parameters:
query
- of request- Returns:
- this request
- Throws:
InvalidCreateOperationException
- when query is invalid
-
addRoots
- Parameters:
roots
- string root- Returns:
- this Request
- Throws:
InvalidParseOperationException
- when query is invalid
-
addRoots
- Parameters:
rootContent
- array of root- Returns:
- this Request
-
parseRoots
- Parameters:
roots
- string of array root- Returns:
- this Request
- Throws:
InvalidParseOperationException
- when query is invalid
-
getFinal
protected final com.fasterxml.jackson.databind.node.ObjectNode getFinal()Get the json final of request- Specified by:
getFinal
in classAbstractRequest
- Returns:
- the Final containing all 3 parts: roots, queries array and filter
-
getRoots
- Specified by:
getRoots
in classAbstractRequest
- Returns:
- the roots array
-
getNbQueries
public final int getNbQueries()- Specified by:
getNbQueries
in classAbstractRequest
- Returns:
- the number of queries
-
getQueries
- Specified by:
getQueries
in classAbstractRequest
- Returns:
- the queries list
-
getNthQuery
- Parameters:
nth
- query position- Returns:
- the nth query
-
getFacets
getFacets- Returns:
-
setFacets
setFacets- Parameters:
facets
-
-
getData
public com.fasterxml.jackson.databind.JsonNode getData()default implements of getData- Specified by:
getData
in classAbstractRequest
- Returns:
- the data
-
getAllProjection
public boolean getAllProjection()default implements of getAllProjection- Specified by:
getAllProjection
in classAbstractRequest
- Returns:
- True if the projection is not restricted
-
getProjection
public com.fasterxml.jackson.databind.node.ObjectNode getProjection()default implements of getProjection- Specified by:
getProjection
in classAbstractRequest
- Returns:
- the projection
-
getThreshold
Getter for threshold- Returns:
- the threshold
-
setThreshold
Setter for threshold- Parameters:
threshold
- the value to set for the threshold
-
getActions
default implements of getActions- Specified by:
getActions
in classAbstractRequest
- Returns:
- list of actions
-
toString
- Overrides:
toString
in classAbstractRequest
-