public void addFilterVariable(String name, Object value) { QueryVariableValue variableValue = new QueryVariableValue(name, value, QueryOperator.EQUALS, true); this.filterVariables.add(variableValue); }
public void addFilterVariable(String name, Object value) { QueryVariableValue variableValue = new QueryVariableValue(name, value, QueryOperator.EQUALS, true); this.filterVariables.add(variableValue); }
public void setFilterVariables(Map<String, Object> filterVariables) { QueryVariableValue variableValue; for (Map.Entry<String, Object> filter : filterVariables.entrySet()) { variableValue = new QueryVariableValue(filter.getKey(), filter.getValue(), null, false); this.filterVariables.add(variableValue); } }
public void setFilterVariables(Map<String, Object> filterVariables) { QueryVariableValue variableValue; for (Map.Entry<String, Object> filter : filterVariables.entrySet()) { variableValue = new QueryVariableValue(filter.getKey(), filter.getValue(), null, false); this.filterVariables.add(variableValue); } }
public HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue) { ensureNotNull("variableName", variableName); ensureNotNull("variableValue", variableValue); this.variableName = variableName; queryVariableValue = new QueryVariableValue(variableName, variableValue, QueryOperator.EQUALS, true); return this; }
public HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue) { ensureNotNull("variableName", variableName); ensureNotNull("variableValue", variableValue); this.variableName = variableName; queryVariableValue = new QueryVariableValue(variableName, variableValue, QueryOperator.EQUALS, true); return this; }
protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) { ensureNotNull(NotValidException.class, "name", name); if(value == null || isBoolean(value)) { // Null-values and booleans can only be used in EQUALS and NOT_EQUALS switch(operator) { case GREATER_THAN: throw new NotValidException("Booleans and null cannot be used in 'greater than' condition"); case LESS_THAN: throw new NotValidException("Booleans and null cannot be used in 'less than' condition"); case GREATER_THAN_OR_EQUAL: throw new NotValidException("Booleans and null cannot be used in 'greater than or equal' condition"); case LESS_THAN_OR_EQUAL: throw new NotValidException("Booleans and null cannot be used in 'less than or equal' condition"); case LIKE: throw new NotValidException("Booleans and null cannot be used in 'like' condition"); } } queryVariableValues.add(new QueryVariableValue(name, value, operator, processInstanceScope)); }
protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) { ensureNotNull(NotValidException.class, "name", name); if(value == null || isBoolean(value)) { // Null-values and booleans can only be used in EQUALS and NOT_EQUALS switch(operator) { case GREATER_THAN: throw new NotValidException("Booleans and null cannot be used in 'greater than' condition"); case LESS_THAN: throw new NotValidException("Booleans and null cannot be used in 'less than' condition"); case GREATER_THAN_OR_EQUAL: throw new NotValidException("Booleans and null cannot be used in 'greater than or equal' condition"); case LESS_THAN_OR_EQUAL: throw new NotValidException("Booleans and null cannot be used in 'less than or equal' condition"); case LIKE: throw new NotValidException("Booleans and null cannot be used in 'like' condition"); } } queryVariableValues.add(new QueryVariableValue(name, value, operator, processInstanceScope)); }
public void addFilterVariable(String name, Object value) { QueryVariableValue variableValue = new QueryVariableValue(name, value, QueryOperator.EQUALS, true); this.filterVariables.add(variableValue); }
public void setFilterVariables(Map<String, Object> filterVariables) { QueryVariableValue variableValue; for (Map.Entry<String, Object> filter : filterVariables.entrySet()) { variableValue = new QueryVariableValue(filter.getKey(), filter.getValue(), null, false); this.filterVariables.add(variableValue); } }
public HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue) { ensureNotNull("variableName", variableName); ensureNotNull("variableValue", variableValue); this.variableName = variableName; queryVariableValue = new QueryVariableValue(variableName, variableValue, QueryOperator.EQUALS, true); return this; }
private List<QueryVariableValue> createQueryVariableValues(VariableSerializers variableTypes, List<VariableQueryParameterDto> variables) { List<QueryVariableValue> values = new ArrayList<QueryVariableValue>(); if (variables == null) { return values; } for (VariableQueryParameterDto variable : variables) { QueryVariableValue value = new QueryVariableValue( variable.getName(), variable.getValue(), ConditionQueryParameterDto.getQueryOperator(variable.getOperator()), false); value.initialize(variableTypes); values.add(value); } return values; }
private List<QueryVariableValue> createQueryVariableValues(VariableSerializers variableTypes, List<VariableQueryParameterDto> variables) { List<QueryVariableValue> values = new ArrayList<QueryVariableValue>(); if (variables == null) { return values; } for (VariableQueryParameterDto variable : variables) { QueryVariableValue value = new QueryVariableValue( variable.getName(), variable.getValue(), ConditionQueryParameterDto.getQueryOperator(variable.getOperator()), false); value.initialize(variableTypes); values.add(value); } return values; } }
protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) { ensureNotNull(NotValidException.class, "name", name); if(value == null || isBoolean(value)) { // Null-values and booleans can only be used in EQUALS and NOT_EQUALS switch(operator) { case GREATER_THAN: throw new NotValidException("Booleans and null cannot be used in 'greater than' condition"); case LESS_THAN: throw new NotValidException("Booleans and null cannot be used in 'less than' condition"); case GREATER_THAN_OR_EQUAL: throw new NotValidException("Booleans and null cannot be used in 'greater than or equal' condition"); case LESS_THAN_OR_EQUAL: throw new NotValidException("Booleans and null cannot be used in 'less than or equal' condition"); case LIKE: throw new NotValidException("Booleans and null cannot be used in 'like' condition"); } } queryVariableValues.add(new QueryVariableValue(name, value, operator, processInstanceScope)); }