本文整理了Java中net.sf.jsqlparser.expression.operators.relational.Between
类的一些代码示例,展示了Between
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Between
类的具体详情如下:
包路径:net.sf.jsqlparser.expression.operators.relational.Between
类名称:Between
[英]A "BETWEEN" expr1 expr2 statement
[中]“BETWEEN”expr1 expr2语句
代码示例来源:origin: JSQLParser/JSqlParser
@Override
public void visit(Between expr) {
expr.getLeftExpression().accept(this);
expr.getBetweenExpressionStart().accept(this);
expr.getBetweenExpressionEnd().accept(this);
}
代码示例来源:origin: JSQLParser/JSqlParser
final public Expression Between() throws ParseException {Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
Expression betweenExpressionEnd = null;
leftExpression = SimpleExpression();
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_NOT:{
jj_consume_token(K_NOT);
result.setNot(true);
break;
}
default:
jj_la1[215] = jj_gen;
;
}
jj_consume_token(K_BETWEEN);
betweenExpressionStart = SimpleExpression();
jj_consume_token(K_AND);
betweenExpressionEnd = SimpleExpression();
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
return result;
}
代码示例来源: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: geotools/geotools
public void visit(Between between) {
Between qualified = new Between();
Expression start = qualify(session, tableAliases, between.getBetweenExpressionStart());
Expression end = qualify(session, tableAliases, between.getBetweenExpressionEnd());
Expression left = qualify(session, tableAliases, between.getLeftExpression());
qualified.setBetweenExpressionStart(start);
qualified.setBetweenExpressionEnd(end);
qualified.setLeftExpression(left);
this._qualifiedExpression = qualified;
}
代码示例来源: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: com.eas.platypus/platypus-js-sql-parser
final public Expression Between() throws ParseException {Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
tk = jj_consume_token(K_NOT);
if (tk.specialToken != null) {
result.setCommentNot(tk.specialToken.image);
result.setNot(true);
break;
result.setCommentBetween(tk.specialToken.image);
result.setCommentAnd(tk.specialToken.image);
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
{if ("" != null) return result;}
throw new Error("Missing return statement in function");
代码示例来源:origin: Quetzal-RDF/quetzal
boolean tmpWhereOnlyExpFound = false;
isTopLevel = false;
between.getLeftExpression().accept(this);
tmpWhereOnlyExpFound |= whereOnlyExpFound;
between.getBetweenExpressionStart().accept(this);
between.getBetweenExpressionStart().accept(this);
代码示例来源:origin: org.geotools/gt-arcsde
public void visit(Between between) {
Between qualified = new Between();
Expression start = qualify(session, tableAliases, between.getBetweenExpressionStart());
Expression end = qualify(session, tableAliases, between.getBetweenExpressionEnd());
Expression left = qualify(session, tableAliases, between.getLeftExpression());
qualified.setBetweenExpressionStart(start);
qualified.setBetweenExpressionEnd(end);
qualified.setLeftExpression(left);
this._qualifiedExpression = qualified;
}
代码示例来源:origin: JSQLParser/JSqlParser
@Override
public void visit(Between between) {
between.getLeftExpression().accept(this);
between.getBetweenExpressionStart().accept(this);
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: alibaba/mdrill
final public Expression Between() throws ParseException {
Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
Expression betweenExpressionEnd = null;
leftExpression = SimpleExpression();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case K_NOT:
jj_consume_token(K_NOT);
result.setNot(true);
break;
default:
jj_la1[91] = jj_gen;
;
}
jj_consume_token(K_BETWEEN);
betweenExpressionStart = SimpleExpression();
jj_consume_token(K_AND);
betweenExpressionEnd = SimpleExpression();
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
{if (true) return result;}
throw new Error("Missing return statement in function");
}
代码示例来源:origin: scouter-project/scouter
public void visit(Between between) {
between.getLeftExpression().accept(this);
between.getBetweenExpressionStart().accept(this);
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: com.github.jsqlparser/jsqlparser
final public Expression Between() throws ParseException {Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
Expression betweenExpressionEnd = null;
leftExpression = SimpleExpression();
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_NOT:{
jj_consume_token(K_NOT);
result.setNot(true);
break;
}
default:
jj_la1[216] = jj_gen;
;
}
jj_consume_token(K_BETWEEN);
betweenExpressionStart = SimpleExpression();
jj_consume_token(K_AND);
betweenExpressionEnd = SimpleExpression();
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
return result;
}
代码示例来源:origin: io.github.scouter-project/scouter-server
public void visit(Between between) {
between.getLeftExpression().accept(this);
between.getBetweenExpressionStart().accept(this);
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: org.opencadc/cadc-jsqlparser-compat
final public Expression Between() throws ParseException {Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
Expression betweenExpressionEnd = null;
leftExpression = SimpleExpression();
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_NOT:{
jj_consume_token(K_NOT);
result.setNot(true);
break;
}
default:
jj_la1[92] = jj_gen;
;
}
jj_consume_token(K_BETWEEN);
betweenExpressionStart = SimpleExpression();
jj_consume_token(K_AND);
betweenExpressionEnd = SimpleExpression();
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
{if ("" != null) return result;}
throw new Error("Missing return statement in function");
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-obdalib-core
@Override
public void visit(Between between) {
between.getLeftExpression().accept(this);
between.getBetweenExpressionStart().accept(this);
between.getBetweenExpressionEnd().accept(this);
}
代码示例来源: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: metatron-app/metatron-discovery
endDateValue.setValue(new Date(endDateTime.getMillis()));
Between between = new Between();
between.setLeftExpression(new Column(filter.getColumn()));
between.setBetweenExpressionStart(startDateValue);
between.setBetweenExpressionEnd(endDateValue);
endDateValue.setValue(new Date(endDateTime.getMillis()));
Between between = new Between();
between.setLeftExpression(new Column(filter.getColumn()));
between.setBetweenExpressionStart(startDateValue);
between.setBetweenExpressionEnd(endDateValue);
intervalExprList.add(between);
内容来源于网络,如有侵权,请联系作者删除!