public final class ExpressionBuilder
extends java.lang.Object
Constructor and Description |
---|
ExpressionBuilder() |
Modifier and Type | Method and Description |
---|---|
ExpressionBuilder |
and()
Adds an AND operator to the current query expression.
|
ExpressionBuilder |
and(ExpressionBuilder subexpression)
Adds an AND operator to the current query expression.
|
ExpressionBuilder |
between(ExpressionBuilder subexpression)
Create a between expression using the specified sub-expression.
|
ExpressionBuilder |
between(java.lang.String property,
java.lang.Double lower,
java.lang.Double upper,
boolean inclusive)
Add a between expression for the given Event property and double precision floating point range.
|
ExpressionBuilder |
between(java.lang.String property,
java.lang.Float lower,
java.lang.Float upper,
boolean inclusive)
Add a between expression for the given Event property and floating point range.
|
ExpressionBuilder |
between(java.lang.String property,
java.lang.Integer lower,
java.lang.Integer upper,
boolean inclusive)
Add a between expression for the given Event property and integer range.
|
ExpressionBuilder |
between(java.lang.String property,
java.lang.Long lower,
java.lang.Long upper,
boolean inclusive)
Add a between expression for the given Event property and long integer range.
|
ExpressionBuilder |
between(java.lang.String property,
java.lang.String lower,
java.lang.String upper,
boolean inclusive)
Add a between expression for the given Event property and string range.
|
ExpressionBuilder |
between(java.lang.String property,
java.sql.Timestamp lower,
java.sql.Timestamp upper,
boolean inclusive)
Add a between expression for the given Event property and timestamp range.
|
java.lang.StringBuilder |
getExpression() |
ExpressionBuilder |
or()
Adds an OR operator to the current query expression.
|
ExpressionBuilder |
or(ExpressionBuilder subexpression)
Adds an OR operator to the current query expression.
|
ExpressionBuilder |
simple(ExpressionBuilder subexpression)
Add a simple expression using the specified sub-expression.
|
ExpressionBuilder |
simple(java.lang.String property,
Op operation,
java.lang.Double operand)
Add a simple expression to the current expression.
|
ExpressionBuilder |
simple(java.lang.String property,
Op operation,
java.lang.Float operand)
Add a simple expression to the current expression.
|
ExpressionBuilder |
simple(java.lang.String property,
Op operation,
java.lang.Integer operand)
Add a simple expression to the current expression.
|
ExpressionBuilder |
simple(java.lang.String property,
Op operation,
java.lang.Long operand)
Add a simple expression to the current expression.
|
ExpressionBuilder |
simple(java.lang.String property,
Op operation,
java.lang.String operand)
Add a simple expression to the current expression.
|
ExpressionBuilder |
simple(java.lang.String property,
Op operation,
java.sql.Timestamp operand)
Add a simple expression to the current expression.
|
public ExpressionBuilder simple(java.lang.String property, Op operation, java.lang.String operand)
property
- The Event property to compareoperation
- The operation used for the comparison.operand
- The value against which the property is compared.public ExpressionBuilder simple(java.lang.String property, Op operation, java.lang.Integer operand)
property
- The Event property to compareoperation
- The operation used for the comparison.operand
- The value against which the property is compared.public ExpressionBuilder simple(java.lang.String property, Op operation, java.lang.Long operand)
property
- The Event property to compareoperation
- The operation used for the comparison.operand
- The value against which the property is compared.public ExpressionBuilder simple(java.lang.String property, Op operation, java.lang.Float operand)
property
- The Event property to compareoperation
- The operation used for the comparison.operand
- The value against which the property is compared.public ExpressionBuilder simple(java.lang.String property, Op operation, java.lang.Double operand)
property
- The Event property to compareoperation
- The operation used for the comparison.operand
- The value against which the property is compared.public ExpressionBuilder simple(java.lang.String property, Op operation, java.sql.Timestamp operand)
property
- The Event property to compareoperation
- The operation used for the comparison.operand
- The value against which the property is compared.public ExpressionBuilder simple(ExpressionBuilder subexpression)
subexpression
- The builder used to create the sub-expression.public ExpressionBuilder between(java.lang.String property, java.lang.String lower, java.lang.String upper, boolean inclusive)
property
- The event property to be evaluated in the expression.lower
- The lower bounds of the expression.upper
- The upper bounds of the expression.inclusive
- A boolean indicating the range is inclusive.public ExpressionBuilder between(java.lang.String property, java.lang.Integer lower, java.lang.Integer upper, boolean inclusive)
property
- The event property to be evaluated in the expression.lower
- The lower bounds of the expression.upper
- The upper bounds of the expression.inclusive
- A boolean indicating the range is inclusive.public ExpressionBuilder between(java.lang.String property, java.lang.Long lower, java.lang.Long upper, boolean inclusive)
property
- The event property to be evaluated in the expression.lower
- The lower bounds of the expression.upper
- The upper bounds of the expression.inclusive
- A boolean indicating the range is inclusive.public ExpressionBuilder between(java.lang.String property, java.lang.Float lower, java.lang.Float upper, boolean inclusive)
property
- The event property to be evaluated in the expression.lower
- The lower bounds of the expression.upper
- The upper bounds of the expression.inclusive
- A boolean indicating the range is inclusive.public ExpressionBuilder between(java.lang.String property, java.lang.Double lower, java.lang.Double upper, boolean inclusive)
property
- The event property to be evaluated in the expression.lower
- The lower bounds of the expression.upper
- The upper bounds of the expression.inclusive
- A boolean indicating the range is inclusive.public ExpressionBuilder between(java.lang.String property, java.sql.Timestamp lower, java.sql.Timestamp upper, boolean inclusive)
property
- The event property to be evaluated in the expression.lower
- The lower bounds of the expression.upper
- The upper bounds of the expression.inclusive
- A boolean indicating the range is inclusive.public ExpressionBuilder between(ExpressionBuilder subexpression)
subexpression
- The builder used to create the sub-expression.public ExpressionBuilder or()
public ExpressionBuilder or(ExpressionBuilder subexpression)
public ExpressionBuilder and()
public ExpressionBuilder and(ExpressionBuilder subexpression)
public java.lang.StringBuilder getExpression()