Class RequestSingle
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.request.AbstractRequest
-
- fr.gouv.vitam.common.database.builder.request.single.RequestSingle
-
public abstract class RequestSingle extends AbstractRequest
Request for Single Mode Query
-
-
Field Summary
Fields Modifier and Type Field Description protected Query
query
-
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
-
Constructor Summary
Constructors Constructor Description RequestSingle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Action>
getActions()
default implements of getActionsboolean
getAllProjection()
com.fasterxml.jackson.databind.JsonNode
getData()
com.fasterxml.jackson.databind.node.ArrayNode
getDatas()
protected com.fasterxml.jackson.databind.node.ObjectNode
getFinal()
Get the json final of requestint
getNbQueries()
com.fasterxml.jackson.databind.node.ObjectNode
getProjection()
java.util.List<Query>
getQueries()
default implements of getQueriesQuery
getQuery()
java.util.Set<java.lang.String>
getRoots()
RequestSingle
reset()
RequestSingle
resetQuery()
RequestSingle
setQuery(Query query)
Set the query of request: in case of multi-query request: re-initialize list of queryjava.lang.String
toString()
-
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 Detail
-
query
protected Query query
-
-
Method Detail
-
resetQuery
public final RequestSingle resetQuery()
- Returns:
- this Request
-
reset
public RequestSingle reset()
- Overrides:
reset
in classAbstractRequest
- Returns:
- this Request
-
setQuery
public final RequestSingle setQuery(Query query) throws InvalidCreateOperationException
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
public final Query getQuery()
- Returns:
- the query
-
getNbQueries
public final int getNbQueries()
- Specified by:
getNbQueries
in classAbstractRequest
- Returns:
- the number of queries
-
getQueries
public java.util.List<Query> getQueries()
default implements of getQueries- Specified by:
getQueries
in classAbstractRequest
- Returns:
- the queries list
-
getRoots
public java.util.Set<java.lang.String> 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
public java.util.List<Action> getActions()
default implements of getActions- Specified by:
getActions
in classAbstractRequest
- Returns:
- list of actions
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractRequest
-
getDatas
public com.fasterxml.jackson.databind.node.ArrayNode getDatas()
- Returns:
- the multiple data to insert at once
-
-