@API(value=EXPERIMENTAL) public class QueryKeyExpression extends Object
QueryableKeyExpression
in a query.Constructor and Description |
---|
QueryKeyExpression(QueryableKeyExpression keyExpression) |
Modifier and Type | Method and Description |
---|---|
QueryComponent |
equalsParameter(String param)
Checks if the key expression has a value equal to the given parameter.
|
QueryComponent |
equalsValue(Object comparand)
Checks if the key expression has a value equal to the given comparand.
|
QueryComponent |
greaterThan(Object comparand)
Checks if the key expression has a value greater than the given comparand.
|
QueryComponent |
greaterThanOrEquals(Object comparand)
Checks if the key expression has a value greater than or equal to the given comparand.
|
QueryComponent |
isNull()
Returns true if the key expression evaluates to
null . |
QueryComponent |
lessThan(Object comparand)
Checks if the key expression has a value less than the given comparand.
|
QueryComponent |
lessThanOrEquals(Object comparand)
Checks if the key expression has a value less than or equal to the given comparand.
|
QueryComponent |
notEquals(Object comparand)
Checks if the key expression has a value not equal to the given comparand.
|
QueryComponent |
notNull()
Returns true if the key expression does not evaluate to
null . |
QueryComponent |
startsWith(String comparand)
Checks if the key expression starts with the given string.
|
public QueryKeyExpression(@Nonnull QueryableKeyExpression keyExpression)
@Nonnull public QueryComponent equalsValue(@Nonnull Object comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent notEquals(@Nonnull Object comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent greaterThan(@Nonnull Object comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent greaterThanOrEquals(@Nonnull Object comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent lessThan(@Nonnull Object comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent lessThanOrEquals(@Nonnull Object comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent startsWith(@Nonnull String comparand)
comparand
- the object to compare with the value in the field@Nonnull public QueryComponent isNull()
null
.@Nonnull public QueryComponent notNull()
null
.@Nonnull public QueryComponent equalsParameter(@Nonnull String param)
param
- the name of the parameter