Class RequestSingle
java.lang.Object
fr.gouv.vitam.common.database.builder.request.AbstractRequest
fr.gouv.vitam.common.database.builder.request.single.RequestSingle
Request for Single Mode Query
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault implements of getActionsboolean
com.fasterxml.jackson.databind.JsonNode
getData()
com.fasterxml.jackson.databind.node.ArrayNode
getDatas()
protected final com.fasterxml.jackson.databind.node.ObjectNode
getFinal()
Get the json final of requestfinal int
com.fasterxml.jackson.databind.node.ObjectNode
default implements of getQueriesfinal Query
getQuery()
getRoots()
reset()
final RequestSingle
final RequestSingle
Set the query of request: in case of multi-query request: re-initialize list of querytoString()
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
-
query
-
-
Constructor Details
-
RequestSingle
public RequestSingle()
-
-
Method Details
-
resetQuery
- Returns:
- this Request
-
reset
- Overrides:
reset
in classAbstractRequest
- Returns:
- this Request
-
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
- whern 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 json containing all 2 parts: query and filter
-
getQuery
- Returns:
- the query
-
getNbQueries
public final int getNbQueries()- Specified by:
getNbQueries
in classAbstractRequest
- Returns:
- the number of queries
-
getQueries
default implements of getQueries- Specified by:
getQueries
in classAbstractRequest
- Returns:
- the queries list
-
getRoots
- Specified by:
getRoots
in classAbstractRequest
- Returns:
- the queries list
-
getData
public com.fasterxml.jackson.databind.JsonNode getData()- Specified by:
getData
in classAbstractRequest
- Returns:
- the data
-
getAllProjection
public boolean getAllProjection()- Specified by:
getAllProjection
in classAbstractRequest
- Returns:
- True if the projection is not restricted
-
getProjection
public com.fasterxml.jackson.databind.node.ObjectNode getProjection()- Specified by:
getProjection
in classAbstractRequest
- Returns:
- the projection
-
getActions
default implements of getActions- Specified by:
getActions
in classAbstractRequest
- Returns:
- list of actions
-
toString
- Overrides:
toString
in classAbstractRequest
-
getDatas
public com.fasterxml.jackson.databind.node.ArrayNode getDatas()- Returns:
- the multiple data to insert at once
-