本文整理汇总了Java中net.sf.jsqlparser.expression.operators.relational.Between类的典型用法代码示例。如果您正苦于以下问题:Java Between类的具体用法?Java Between怎么用?Java Between使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Between类属于net.sf.jsqlparser.expression.operators.relational包,在下文中一共展示了Between类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SQLCondition
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
final public Expression SQLCondition() throws ParseException {
Expression result;
if (jj_2_15(2147483647)) {
result = InExpression();
} else if (jj_2_16(2147483647)) {
result = Between();
} else if (jj_2_17(2147483647)) {
result = IsNullExpression();
} else if (jj_2_18(2147483647)) {
result = ExistsExpression();
} else {
jj_consume_token(-1);
throw new ParseException();
}
{if (true) return result;}
throw new Error("Missing return statement in function");
}
示例2: Between
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
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[88] = 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");
}
示例3: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@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);
}
示例4: create
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
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);
}
示例5: SQLCondition
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
final public Expression SQLCondition() throws ParseException {Expression result;
if (jj_2_15(2147483647)) {
result = InExpression();
} else if (jj_2_16(2147483647)) {
result = Between();
} else if (jj_2_17(2147483647)) {
result = IsNullExpression();
} else if (jj_2_18(2147483647)) {
result = ExistsExpression();
} else {
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_NULL:
case K_CASE:
case K_REPLACE:
case S_DOUBLE:
case S_INTEGER:
case S_IDENTIFIER:
case S_CHAR_LITERAL:
case S_QUOTED_IDENTIFIER:
case LPAREN:
case HOOK:
case ADD:
case MINUS:
case COLON:
case DATELITERAL:
case TIMELITERAL:
case TIMESTAMPLITERAL:
case ESCAPEDLITEARL:{
result = LikeExpression();
break;
}
default:
jj_la1[99] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
{if ("" != null) return result;}
throw new Error("Missing return statement in function");
}
示例6: Between
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
final public Expression Between() throws ParseException {Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
Expression betweenExpressionEnd = null;
Token tk = null;
leftExpression = SimpleExpression();
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_NOT:{
tk = jj_consume_token(K_NOT);
if (tk.specialToken != null) {
result.setCommentNot(tk.specialToken.image);
}
result.setNot(true);
break;
}
default:
jj_la1[102] = jj_gen;
;
}
tk = jj_consume_token(K_BETWEEN);
if (tk.specialToken != null) {
result.setCommentBetween(tk.specialToken.image);
}
betweenExpressionStart = SimpleExpression();
tk = jj_consume_token(K_AND);
if (tk.specialToken != null) {
result.setCommentAnd(tk.specialToken.image);
}
betweenExpressionEnd = SimpleExpression();
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
{if ("" != null) return result;}
throw new Error("Missing return statement in function");
}
示例7: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
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);
}
示例8: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@Override
public void visit(Between expr)
{
invalid = true;
super.visit(expr);
}
示例9: Between
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
final public Expression Between() throws ParseException {
/* @bgen(jjtree) Between */
SimpleNode jjtn000 = new SimpleNode(JJTBETWEEN);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
Between result = new Between();
Expression leftExpression = null;
Expression betweenExpressionStart = null;
Expression betweenExpressionEnd = null;
try {
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[178] = jj_gen;
;
}
jj_consume_token(K_BETWEEN);
betweenExpressionStart = SimpleExpression();
jj_consume_token(K_AND);
betweenExpressionEnd = SimpleExpression();
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
result.setLeftExpression(leftExpression);
result.setBetweenExpressionStart(betweenExpressionStart);
result.setBetweenExpressionEnd(betweenExpressionEnd);
{
if (true)
return result;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{
if (true)
throw (RuntimeException) jjte000;
}
}
if (jjte000 instanceof ParseException) {
{
if (true)
throw (ParseException) jjte000;
}
}
{
if (true)
throw (Error) jjte000;
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new Error("Missing return statement in function");
}
示例10: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@Override
public void visit(Between expr) {
expr.getLeftExpression().accept(this);
expr.getBetweenExpressionStart().accept(this);
expr.getBetweenExpressionEnd().accept(this);
}
示例11: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@Override
public void visit(Between between) {
between.getLeftExpression().accept(this);
between.getBetweenExpressionStart().accept(this);
between.getBetweenExpressionEnd().accept(this);
}
示例12: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@Override
public void visit(Between between) {
between.getBetweenExpressionStart().accept(this);
between.getBetweenExpressionEnd().accept(this);
between.getLeftExpression().accept(this);
}
示例13: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@Override
public void visit(Between btwn) {
btwn.getLeftExpression().accept(this);
btwn.getBetweenExpressionStart().accept(this);
btwn.getBetweenExpressionEnd().accept(this);
}
示例14: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
@Override
public void visit(Between arg0) {
log.debug("sql expression = " + arg0.toString());
value = arg0.toString();
}
示例15: visit
import net.sf.jsqlparser.expression.operators.relational.Between; //导入依赖的package包/类
public void visit(Between between) {
between.getLeftExpression().accept(this);
between.getBetweenExpressionStart().accept(this);
between.getBetweenExpressionEnd().accept(this);
}