Class UpdateParserSingle
- java.lang.Object
-
- fr.gouv.vitam.common.database.parser.request.AbstractParser<RequestSingle>
-
- fr.gouv.vitam.common.database.parser.request.single.RequestParserSingle
-
- fr.gouv.vitam.common.database.parser.request.single.UpdateParserSingle
-
public class UpdateParserSingle extends RequestParserSingle
Select Parser: { $query : query, $filter : filter, $actions : actions }
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.database.parser.request.AbstractParser
adapter, hasFullTextCurrentQuery, hasFullTextQuery, request, rootNode, sourceRequest
-
-
Constructor Summary
Constructors Constructor Description UpdateParserSingle()
Empty constructorUpdateParserSingle(VarNameAdapter adapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
actionParse(com.fasterxml.jackson.databind.JsonNode actionNode)
{$"action" : args, ...}protected Action
analyseOneAction(java.lang.String refCommand, com.fasterxml.jackson.databind.JsonNode command)
protected RequestSingle
getNewRequest()
Update
getRequest()
protected static BuilderToken.UPDATEACTION
getUpdateActionId(java.lang.String actionroot)
Compute the QUERY from commandvoid
parse(com.fasterxml.jackson.databind.JsonNode request)
java.lang.String
toString()
-
Methods inherited from class fr.gouv.vitam.common.database.parser.request.single.RequestParserSingle
addCondition, analyzeRootQuery, filterParse, getLastDepth, hintCache, hintNoTimeout, model, parseJson, parseQueryOnly, queryParse
-
Methods inherited from class fr.gouv.vitam.common.database.parser.request.AbstractParser
analyzeOneCommand, getAdapter, getRootNode, getSource, hasFullTextQuery, parseOrderByFilter
-
-
-
-
Constructor Detail
-
UpdateParserSingle
public UpdateParserSingle()
Empty constructor
-
UpdateParserSingle
public UpdateParserSingle(VarNameAdapter adapter)
- Parameters:
adapter
- VarNameAdapter
-
-
Method Detail
-
getNewRequest
protected RequestSingle getNewRequest()
- Specified by:
getNewRequest
in classAbstractParser<RequestSingle>
- Returns:
- a new Request
-
parse
public void parse(com.fasterxml.jackson.databind.JsonNode request) throws InvalidParseOperationException
- Specified by:
parse
in classAbstractParser<RequestSingle>
- Parameters:
request
- containing a parsed JSON as { $query : query, $filter : filter, $action : action }- Throws:
InvalidParseOperationException
- if request could not parse to JSON
-
actionParse
protected void actionParse(com.fasterxml.jackson.databind.JsonNode actionNode) throws InvalidParseOperationException
{$"action" : args, ...}- Parameters:
actionNode
- JsonNode- Throws:
InvalidParseOperationException
- if rootNode could not parse to JSON
-
getUpdateActionId
protected static final BuilderToken.UPDATEACTION getUpdateActionId(java.lang.String actionroot) throws InvalidParseOperationException
Compute the QUERY from command- Parameters:
actionroot
- String- Returns:
- the QUERY
- Throws:
InvalidParseOperationException
- if actionroot could not parse to JSON
-
analyseOneAction
protected Action analyseOneAction(java.lang.String refCommand, com.fasterxml.jackson.databind.JsonNode command) throws InvalidParseOperationException
- Throws:
InvalidParseOperationException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRequestParserSingle
-
getRequest
public Update getRequest()
- Overrides:
getRequest
in classAbstractParser<RequestSingle>
- Returns:
- the Request
-
-