Class Action
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.query.action.Action
-
- Direct Known Subclasses:
AddAction
,IncAction
,MaxAction
,MinAction
,PopAction
,PullAction
,PushAction
,RenameAction
,SetAction
,SetregexAction
,UnsetAction
public class Action extends java.lang.Object
Action component
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.node.ObjectNode
currentAction
protected com.fasterxml.jackson.databind.JsonNode
currentObject
protected BuilderToken.UPDATEACTION
currentUPDATEACTION
protected boolean
ready
-
Constructor Summary
Constructors Modifier Constructor Description protected
Action()
Empty constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
Clean the objectprotected void
createActionValueArrayVariable(BuilderToken.UPDATEACTION action, java.lang.String variableName)
protected void
createActionVariables(BuilderToken.UPDATEACTION action, java.lang.String... variableNames)
protected void
createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, boolean value)
protected void
createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, double value)
protected void
createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, long value)
protected void
createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, java.lang.String value)
protected void
createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, java.util.Date value)
protected void
createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, java.util.List<?> value)
com.fasterxml.jackson.databind.node.ObjectNode
getCurrentAction()
com.fasterxml.jackson.databind.JsonNode
getCurrentObject()
BuilderToken.UPDATEACTION
getUPDATEACTION()
boolean
isReady()
protected void
setReady(boolean ready)
java.lang.String
toString()
-
-
-
Field Detail
-
currentAction
protected com.fasterxml.jackson.databind.node.ObjectNode currentAction
-
currentObject
protected com.fasterxml.jackson.databind.JsonNode currentObject
-
currentUPDATEACTION
protected BuilderToken.UPDATEACTION currentUPDATEACTION
-
ready
protected boolean ready
-
-
Method Detail
-
createActionValueArrayVariable
protected final void createActionValueArrayVariable(BuilderToken.UPDATEACTION action, java.lang.String variableName) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariables
protected final void createActionVariables(BuilderToken.UPDATEACTION action, java.lang.String... variableNames) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariableValue
protected final void createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, long value) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariableValue
protected final void createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, double value) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariableValue
protected final void createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, java.lang.String value) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariableValue
protected final void createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, java.util.List<?> value) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariableValue
protected final void createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, boolean value) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
createActionVariableValue
protected final void createActionVariableValue(BuilderToken.UPDATEACTION action, java.lang.String variableName, java.util.Date value) throws InvalidCreateOperationException
- Throws:
InvalidCreateOperationException
-
clean
public void clean()
Clean the object
-
getCurrentAction
public com.fasterxml.jackson.databind.node.ObjectNode getCurrentAction()
- Returns:
- the currentAction
-
getCurrentObject
public com.fasterxml.jackson.databind.JsonNode getCurrentObject()
- Returns:
- the currentObject
-
getUPDATEACTION
public BuilderToken.UPDATEACTION getUPDATEACTION()
- Returns:
- the current UPDATEACTION
-
isReady
public boolean isReady()
- Returns:
- the ready
-
setReady
protected void setReady(boolean ready)
- Parameters:
ready
- the ready to set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-