Class Update
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.request.AbstractRequest
-
- fr.gouv.vitam.common.database.builder.request.single.RequestSingle
-
- fr.gouv.vitam.common.database.builder.request.single.Update
-
public class Update extends RequestSingle
Update: { $query : query, $filter : multi, $action : action } or [ query, multi, action ]
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Action>
actions
-
Fields inherited from class fr.gouv.vitam.common.database.builder.request.single.RequestSingle
query
-
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
-
Constructor Summary
Constructors Constructor Description Update()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Update
addActions(Action... action)
java.util.List<Action>
getActions()
default implements of getActionscom.fasterxml.jackson.databind.node.ObjectNode
getFinalUpdate()
com.fasterxml.jackson.databind.node.ObjectNode
getFinalUpdateById()
Update
reset()
Update
resetActions()
Update
setFilter(com.fasterxml.jackson.databind.JsonNode filterContent)
Update
setMult(boolean mult)
Update
setMult(com.fasterxml.jackson.databind.JsonNode filterContent)
java.lang.String
toString()
-
Methods inherited from class fr.gouv.vitam.common.database.builder.request.single.RequestSingle
getAllProjection, getData, getDatas, getFinal, getNbQueries, getProjection, getQueries, getQuery, getRoots, resetQuery, setQuery
-
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
-
-
-
-
Field Detail
-
actions
protected java.util.List<Action> actions
-
-
Method Detail
-
resetActions
public final Update resetActions()
- Returns:
- this Update
-
reset
public final Update reset()
- Overrides:
reset
in classRequestSingle
- Returns:
- this Update
-
setMult
public final Update setMult(boolean mult)
- Parameters:
mult
- True to act on multiple elements, False to act only on 1 element- Returns:
- this Update
-
setMult
public final Update setMult(com.fasterxml.jackson.databind.JsonNode filterContent)
- Parameters:
filterContent
- json filter- Returns:
- this Update
-
setFilter
public final Update setFilter(com.fasterxml.jackson.databind.JsonNode filterContent) throws InvalidParseOperationException
- Overrides:
setFilter
in classAbstractRequest
- Parameters:
filterContent
- json filter- Returns:
- this Update
- Throws:
InvalidParseOperationException
- when query is not valid
-
addActions
public final Update addActions(Action... action) throws InvalidCreateOperationException
- Parameters:
action
- list- Returns:
- this Update
- Throws:
InvalidCreateOperationException
- when action is not valid
-
getFinalUpdateById
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalUpdateById()
- Returns:
- the Final Update by id containing one parts: actions
-
getFinalUpdate
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalUpdate()
- Returns:
- the Final Update containing all 4 parts: roots, queries array, filter and actions
-
getActions
public final java.util.List<Action> getActions()
Description copied from class:RequestSingle
default implements of getActions- Overrides:
getActions
in classRequestSingle
- Returns:
- the actions list
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRequestSingle
-
-