本文整理了Java中net.sf.jsqlparser.expression.operators.relational.Between.isNot()
方法的一些代码示例,展示了Between.isNot()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Between.isNot()
方法的具体详情如下:
包路径:net.sf.jsqlparser.expression.operators.relational.Between
类名称:Between
方法名:isNot
暂无
代码示例来源:origin: JSQLParser/JSqlParser
@Override
public void visit(Between between) {
between.getLeftExpression().accept(this);
if (between.isNot()) {
buffer.append(" NOT");
}
buffer.append(" BETWEEN ");
between.getBetweenExpressionStart().accept(this);
buffer.append(" AND ");
between.getBetweenExpressionEnd().accept(this);
}
代码示例来源:origin: alibaba/mdrill
public void visit(Between between) {
between.getLeftExpression().accept(this);
if (between.isNot())
buffer.append(" NOT");
buffer.append(" BETWEEN ");
between.getBetweenExpressionStart().accept(this);
buffer.append(" AND ");
between.getBetweenExpressionEnd().accept(this);
}
代码示例来源:origin: com.github.jsqlparser/jsqlparser
@Override
public void visit(Between between) {
between.getLeftExpression().accept(this);
if (between.isNot()) {
buffer.append(" NOT");
}
buffer.append(" BETWEEN ");
between.getBetweenExpressionStart().accept(this);
buffer.append(" AND ");
between.getBetweenExpressionEnd().accept(this);
}
代码示例来源:origin: org.opencadc/cadc-jsqlparser-compat
public void visit(Between between) {
between.getLeftExpression().accept(this);
if (between.isNot())
buffer.append(" NOT");
buffer.append(" BETWEEN ");
between.getBetweenExpressionStart().accept(this);
buffer.append(" AND ");
between.getBetweenExpressionEnd().accept(this);
}
代码示例来源:origin: com.eas.platypus/platypus-js-sql-parser
public void visit(Between between) {
between.getLeftExpression().accept(this);
if (between.isNot()) {
buffer.append(between.getCommentNot() != null ? " " + between.getCommentNot() + ExpressionDeParser.LINE_SEPARATOR : "").append(" not");
}
buffer.append(between.getCommentBetween() != null ? " " + between.getCommentBetween() + ExpressionDeParser.LINE_SEPARATOR : "").append(" between ");
between.getBetweenExpressionStart().accept(this);
buffer.append(between.getCommentAnd() != null ? " " + between.getCommentAnd() + ExpressionDeParser.LINE_SEPARATOR : "").append(" and ");
between.getBetweenExpressionEnd().accept(this);
}
代码示例来源:origin: ontop/ontop
@Override
public void visit(Between expression) {
Term t1 = termVisitor.getTerm(expression.getLeftExpression());
Term t2 = termVisitor.getTerm(expression.getBetweenExpressionStart());
Term t3 = termVisitor.getTerm(expression.getLeftExpression());
Term t4 = termVisitor.getTerm(expression.getBetweenExpressionEnd());
if (expression.isNot()) {
Function atom1 = termFactory.getFunction(ExpressionOperation.LT, t1, t2);
Function atom2 = termFactory.getFunction(ExpressionOperation.GT, t3, t4);
result = ImmutableList.of(termFactory.getFunctionOR(atom1, atom2));
}
else {
Function atom1 = termFactory.getFunction(ExpressionOperation.GTE, t1, t2);
Function atom2 = termFactory.getFunction(ExpressionOperation.LTE, t3, t4);
result = ImmutableList.of(atom1, atom2);
}
}
代码示例来源:origin: diennea/herddb
public static CompiledSQLExpression create(String validatedTableAlias, Between b) {
CompiledSQLExpression left = compileExpression(validatedTableAlias, b.getLeftExpression());
if (left == null) {
return null;
}
CompiledSQLExpression start = compileExpression(validatedTableAlias, b.getBetweenExpressionStart());
if (start == null) {
return null;
}
CompiledSQLExpression end = compileExpression(validatedTableAlias, b.getBetweenExpressionEnd());
if (end == null) {
return null;
}
return new CompiledBetweenExpression(b.isNot(), left, start, end);
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-mapping-sql-core
@Override
public void visit(Between expression) {
Term t1 = termVisitor.getTerm(expression.getLeftExpression());
Term t2 = termVisitor.getTerm(expression.getBetweenExpressionStart());
Term t3 = termVisitor.getTerm(expression.getLeftExpression());
Term t4 = termVisitor.getTerm(expression.getBetweenExpressionEnd());
if (expression.isNot()) {
Function atom1 = TERM_FACTORY.getFunction(ExpressionOperation.LT, t1, t2);
Function atom2 = TERM_FACTORY.getFunction(ExpressionOperation.GT, t3, t4);
result = ImmutableList.of(TERM_FACTORY.getFunctionOR(atom1, atom2));
}
else {
Function atom1 = TERM_FACTORY.getFunction(ExpressionOperation.GTE, t1, t2);
Function atom2 = TERM_FACTORY.getFunction(ExpressionOperation.LTE, t3, t4);
result = ImmutableList.of(atom1, atom2);
}
}
内容来源于网络,如有侵权,请联系作者删除!