Class UpdateActionHelper
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.query.action.UpdateActionHelper
-
- Direct Known Subclasses:
UpdateActionParserHelper
public class UpdateActionHelper extends java.lang.Object
Update associated actions helper
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateActionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AddAction
add(java.lang.String variableName, boolean... value)
static AddAction
add(java.lang.String variableName, double... value)
static AddAction
add(java.lang.String variableName, long... value)
static AddAction
add(java.lang.String variableName, java.lang.String... value)
static AddAction
add(java.lang.String variableName, java.util.Date... value)
static IncAction
inc(java.lang.String variableName)
static IncAction
inc(java.lang.String variableName, long value)
static MaxAction
max(java.lang.String variableName, boolean value)
static MaxAction
max(java.lang.String variableName, double value)
static MaxAction
max(java.lang.String variableName, long value)
static MaxAction
max(java.lang.String variableName, java.lang.String value)
static MaxAction
max(java.lang.String variableName, java.util.Date value)
static MinAction
min(java.lang.String variableName, boolean value)
static MinAction
min(java.lang.String variableName, double value)
static MinAction
min(java.lang.String variableName, long value)
static MinAction
min(java.lang.String variableName, java.lang.String value)
static MinAction
min(java.lang.String variableName, java.util.Date value)
static PopAction
pop(java.lang.String variableName)
static PopAction
pop(java.lang.String variableName, int way)
static PullAction
pull(java.lang.String variableName, boolean... value)
static PullAction
pull(java.lang.String variableName, double... value)
static PullAction
pull(java.lang.String variableName, long... value)
static PullAction
pull(java.lang.String variableName, java.lang.String... value)
static PullAction
pull(java.lang.String variableName, java.util.Date... value)
static PushAction
push(java.lang.String variableName, boolean... value)
static PushAction
push(java.lang.String variableName, double... value)
static PushAction
push(java.lang.String variableName, long... value)
static PushAction
push(java.lang.String variableName, java.lang.String... value)
static PushAction
push(java.lang.String variableName, java.util.Date... value)
static RenameAction
rename(java.lang.String variableName, java.lang.String newName)
static SetAction
set(com.fasterxml.jackson.databind.node.ObjectNode node)
static SetAction
set(java.lang.String variableName, boolean value)
static SetAction
set(java.lang.String variableName, double value)
static SetAction
set(java.lang.String variableName, long value)
static SetAction
set(java.lang.String variableName, java.lang.String value)
static SetAction
set(java.lang.String variableName, java.util.Date value)
static SetAction
set(java.lang.String variableName, java.util.List<?> value)
static SetAction
set(java.util.Map<java.lang.String,?> map)
static UnsetAction
unset(java.lang.String... variableName)
-
-
-
Method Detail
-
add
public static final AddAction add(java.lang.String variableName, java.lang.String... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an AddAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
add
public static final AddAction add(java.lang.String variableName, boolean... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an AddAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
add
public static final AddAction add(java.lang.String variableName, long... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an AddAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
add
public static final AddAction add(java.lang.String variableName, double... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an AddAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
add
public static final AddAction add(java.lang.String variableName, java.util.Date... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an AddAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
inc
public static final IncAction inc(java.lang.String variableName, long value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an IncAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
inc
public static final IncAction inc(java.lang.String variableName) throws InvalidCreateOperationException
- Parameters:
variableName
- key name- Returns:
- an IncAction using default value 1
- Throws:
InvalidCreateOperationException
- when query is invalid
-
min
public static final MinAction min(java.lang.String variableName, long value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MinAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
min
public static final MinAction min(java.lang.String variableName, double value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MinAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
min
public static final MinAction min(java.lang.String variableName, boolean value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MinAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
min
public static final MinAction min(java.lang.String variableName, java.lang.String value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MinAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
min
public static final MinAction min(java.lang.String variableName, java.util.Date value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MinAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
max
public static final MaxAction max(java.lang.String variableName, long value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MaxAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
max
public static final MaxAction max(java.lang.String variableName, double value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MaxAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
max
public static final MaxAction max(java.lang.String variableName, boolean value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MaxAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
max
public static final MaxAction max(java.lang.String variableName, java.lang.String value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MaxAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
max
public static final MaxAction max(java.lang.String variableName, java.util.Date value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- an MaxAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pull
public static final PullAction pull(java.lang.String variableName, java.lang.String... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PullAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pull
public static final PullAction pull(java.lang.String variableName, boolean... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PullAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pull
public static final PullAction pull(java.lang.String variableName, long... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PullAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pull
public static final PullAction pull(java.lang.String variableName, double... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PullAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pull
public static final PullAction pull(java.lang.String variableName, java.util.Date... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PullAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pop
public static final PopAction pop(java.lang.String variableName, int way) throws InvalidCreateOperationException
- Parameters:
variableName
- key nameway
- -1 for first, 1 for last- Returns:
- a PopAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
pop
public static final PopAction pop(java.lang.String variableName) throws InvalidCreateOperationException
- Parameters:
variableName
- key name- Returns:
- a PopAction with default last position
- Throws:
InvalidCreateOperationException
- when query is invalid
-
push
public static final PushAction push(java.lang.String variableName, java.lang.String... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PushAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
push
public static final PushAction push(java.lang.String variableName, boolean... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PushAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
push
public static final PushAction push(java.lang.String variableName, long... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PushAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
push
public static final PushAction push(java.lang.String variableName, double... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PushAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
push
public static final PushAction push(java.lang.String variableName, java.util.Date... value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a PushAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
rename
public static final RenameAction rename(java.lang.String variableName, java.lang.String newName) throws InvalidCreateOperationException
- Parameters:
variableName
- key namenewName
- new key name- Returns:
- a RenameAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.lang.String variableName, java.lang.String value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.lang.String variableName, java.util.List<?> value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value as List of values- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.lang.String variableName, boolean value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.lang.String variableName, long value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.lang.String variableName, double value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.lang.String variableName, java.util.Date value) throws InvalidCreateOperationException
- Parameters:
variableName
- key namevalue
- key value- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(java.util.Map<java.lang.String,?> map) throws InvalidCreateOperationException
- Parameters:
map
- map of variableName for values- Returns:
- a SectAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
set
public static final SetAction set(com.fasterxml.jackson.databind.node.ObjectNode node) throws InvalidCreateOperationException
- Parameters:
node
- of variableName and values- Returns:
- a SetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
unset
public static final UnsetAction unset(java.lang.String... variableName) throws InvalidCreateOperationException
- Parameters:
variableName
- key name- Returns:
- an UnsetAction
- Throws:
InvalidCreateOperationException
- when query is invalid
-
-