com.jn.sqlhelper.jsqlparser.expression.ExistsExpressionConverter Maven / Gradle / Ivy
The newest version!
package com.jn.sqlhelper.jsqlparser.expression;
import com.jn.sqlhelper.dialect.expression.ExistsExpression;
public class ExistsExpressionConverter implements ExpressionConverter {
@Override
public net.sf.jsqlparser.expression.operators.relational.ExistsExpression toJSqlParserExpression(ExistsExpression expression) {
net.sf.jsqlparser.expression.operators.relational.ExistsExpression exp = new net.sf.jsqlparser.expression.operators.relational.ExistsExpression();
exp.setNot(expression.not());
exp.setRightExpression(ExpressionConverters.toJSqlParserExpression(expression.getTarget()));
return exp;
}
@Override
public ExistsExpression fromJSqlParserExpression(net.sf.jsqlparser.expression.operators.relational.ExistsExpression expression) {
return null;
}
@Override
public Class getStandardExpressionClass() {
return ExistsExpression.class;
}
@Override
public Class getJSqlParserExpressionClass() {
return net.sf.jsqlparser.expression.operators.relational.ExistsExpression.class;
}
}