com.microsoft.azure.servicebus.rules.SqlRuleAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-servicebus Show documentation
Show all versions of azure-servicebus Show documentation
Java library for Azure Service Bus
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.servicebus.rules;
/**
* Represents a SQL language-based transformation expression that is performed against a message.
*
* @since 1.0
*/
public class SqlRuleAction extends RuleAction {
private String sqlExpression;
/**
* Creates an instance of SqlRuleAction
with the given transformation expression.
*
* @param sqlExpression SQL language-based transformation expression
*/
public SqlRuleAction(String sqlExpression) {
this.sqlExpression = sqlExpression;
}
/**
* Gets the transformation expression of this rule action.
*
* @return SQL language-based transformation expression
*/
public String getSqlExpression() {
return this.sqlExpression;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof SqlRuleAction)) {
return false;
}
SqlRuleAction other = (SqlRuleAction) o;
return (this.sqlExpression == null ? other.sqlExpression == null : this.sqlExpression.equals(other.sqlExpression));
}
@Override
public int hashCode() {
if (this.sqlExpression != null) {
return this.sqlExpression.hashCode();
}
return super.hashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy