Modifier and Type | Class and Description |
---|---|
static class |
RequestValue.Operator
Represents all operations for parameters.
|
Constructor and Description |
---|
RequestValue(String name,
Object value)
Creates object, parsing value for comparison operator.
|
RequestValue(String name,
Object value,
RequestValue.Operator operator)
Creates object with equals operator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns true if the names, values and operators are equal.
|
List<String> |
getInValues()
Returns the In list values.
|
String |
getName()
Returns name.
|
RequestValue.Operator |
getOperator() |
Object |
getValue()
Returns value.
|
int |
hashCode() |
static List<String> |
parseInValues(Object value)
Parses list of comma separated values from a string.
|
static RequestValue.Operator |
parseOperatorFromValue(Object value)
Parses operator from beginning of value (<, <=, > or >=) or enclosing brackets for the In operator.
|
void |
setValue(Object value)
Sets value.
|
static Object |
stripOperatorFromValue(RequestValue.Operator operator,
Object value)
Returns value without leading operator.
|
String |
toString()
Returns string representation.
|
public RequestValue(String name, Object value)
public RequestValue(String name, Object value, RequestValue.Operator operator)
public static List<String> parseInValues(Object value)
public static RequestValue.Operator parseOperatorFromValue(Object value)
public static Object stripOperatorFromValue(RequestValue.Operator operator, Object value)
public boolean equals(Object o)
public String getName()
public RequestValue.Operator getOperator()
public Object getValue()
public void setValue(Object value)
Copyright © 2011-2018 restSQL Project Contributors