本文整理汇总了Java中net.sf.jsqlparser.expression.operators.relational.ExistsExpression类的典型用法代码示例。如果您正苦于以下问题:Java ExistsExpression类的具体用法?Java ExistsExpression怎么用?Java ExistsExpression使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExistsExpression类属于net.sf.jsqlparser.expression.operators.relational包,在下文中一共展示了ExistsExpression类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SQLCondition
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的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: ExistsExpression
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
final public Expression ExistsExpression() throws ParseException {ExistsExpression result = new ExistsExpression();
Expression rightExpression = null;
Token tk = null;
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[106] = jj_gen;
;
}
tk = jj_consume_token(K_EXISTS);
if (tk.specialToken != null) {
result.setCommentExists(tk.specialToken.image);
}
rightExpression = SimpleExpression();
result.setRightExpression(rightExpression);
{if ("" != null) return result;}
throw new Error("Missing return statement in function");
}
示例3: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression existsExpression) {
if (existsExpression.isNot()) {
buffer.append("NOT EXISTS ");
} else {
buffer.append("EXISTS ");
}
existsExpression.getRightExpression().accept(this);
}
示例4: ExistsExpression
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
final public Expression ExistsExpression() throws ParseException {
ExistsExpression result = new ExistsExpression();
Expression rightExpression = null;
jj_consume_token(K_EXISTS);
rightExpression = SimpleExpression();
result.setRightExpression(rightExpression);
{if (true) return result;}
throw new Error("Missing return statement in function");
}
示例5: SQLCondition
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的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: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
public void visit(ExistsExpression existsExpression) {
if (existsExpression.isNot()) {
buffer.append(existsExpression.getCommentNot() != null ? " " + existsExpression.getCommentNot() + ExpressionDeParser.LINE_SEPARATOR : "").append(" not").append(existsExpression.getCommentExists() != null ? " " + existsExpression.getCommentExists() + ExpressionDeParser.LINE_SEPARATOR : "").append(" exists ");
} else {
buffer.append(existsExpression.getCommentExists() != null ? " " + existsExpression.getCommentExists() + ExpressionDeParser.LINE_SEPARATOR : "").append(" exists ");
}
existsExpression.getRightExpression().accept(this);
}
示例7: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression expr)
{
invalid = true;
super.visit(expr);
}
示例8: ExistsExpression
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
final public Expression ExistsExpression() throws ParseException {
/* @bgen(jjtree) ExistsExpression */
SimpleNode jjtn000 = new SimpleNode(JJTEXISTSEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
ExistsExpression result = new ExistsExpression();
Expression rightExpression = null;
try {
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case K_NOT:
jj_consume_token(K_NOT);
result.setNot(true);
break;
default:
jj_la1[184] = jj_gen;
;
}
jj_consume_token(K_EXISTS);
rightExpression = SimpleExpression();
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
result.setRightExpression(rightExpression);
{
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");
}
示例9: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression expr) {
expr.getRightExpression().accept(this);
}
示例10: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression existsExpression) {
existsExpression.getRightExpression().accept(this);
}
示例11: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression existsExpression) {
// TODO Auto-generated method stub
}
示例12: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression ee
) {
ee.getRightExpression().accept(this);
}
示例13: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression arg0) {
log.debug("sql expression = " + arg0.toString());
value = arg0.toString();
}
示例14: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
public void visit(ExistsExpression existsExpression) {
existsExpression.getRightExpression().accept(this);
}
示例15: visit
import net.sf.jsqlparser.expression.operators.relational.ExistsExpression; //导入依赖的package包/类
@Override
public void visit(ExistsExpression arg0) {
isSimple = false;
}