All Downloads are FREE. Search and download functionalities are using the official Maven repository.

protobuf4j.orm.sql.expr.RelationalExpr Maven / Gradle / Ivy

The newest version!
package protobuf4j.orm.sql.expr;

import protobuf4j.orm.sql.IExpression;
import protobuf4j.orm.sql.ISqlOperator;

import javax.annotation.Nonnull;

/**
 * 关系表达式:{@code = != < <= > >=}
 * 

* * author: yuanwq * date: 2018/7/11 */ public class RelationalExpr extends AbstractBinaryExpr { protected RelationalExpr(IExpression left, @Nonnull RelationalOp op, IExpression right) { super(left, op, right); } @Override public int comparePrecedence(@Nonnull ISqlOperator outerOp) { // 关系表达式嵌套在逻辑表达式中不需要括号,其他都需要 if (outerOp instanceof LogicalOp) { return 1; } return -1; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy