public class SqlRuleFilter extends RuleFilter
A SqlRuleFilter holds a SQL-like condition expression that is evaluated in the broker against the arriving
messages' user-defined properties and system properties. All system properties (which are all properties explicitly
listed on the ServiceBusMessage class) must be prefixed with sys. in the condition expression. The
SQL subset implements testing for existence of properties (EXISTS), testing for null-values (IS NULL), logical
NOT/AND/OR, relational operators, numeric arithmetic, and simple text pattern matching with LIKE.
| Constructor and Description |
|---|
SqlRuleFilter(String sqlExpression)
Creates a new instance with the given SQL expression.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getParameters()
Gets the value of a filter expression.
|
String |
getSqlExpression()
Gets the SQL expression.
|
public SqlRuleFilter(String sqlExpression)
sqlExpression - SQL expression for the filter.NullPointerException - if sqlExpression is null.IllegalArgumentException - if sqlExpression is an empty string.public Map<String,Object> getParameters()
public String getSqlExpression()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.