All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.sqlhelper.jsqlparser.expression.InExpressionConverter Maven / Gradle / Ivy

The newest version!
package com.jn.sqlhelper.jsqlparser.expression;

import com.jn.sqlhelper.dialect.expression.InExpression;

public class InExpressionConverter implements ExpressionConverter {
    @Override
    public net.sf.jsqlparser.expression.operators.relational.InExpression toJSqlParserExpression(InExpression expression) {
        net.sf.jsqlparser.expression.operators.relational.InExpression exp = new net.sf.jsqlparser.expression.operators.relational.InExpression();
        exp.setNot(expression.not());
        exp.setLeftExpression(ExpressionConverters.toJSqlParserExpression(expression.getLeft()));
        exp.setRightItemsList(ExpressionConverters.toJSqlParserExpressionList(expression.getRight()));
        return exp;
    }

    @Override
    public InExpression fromJSqlParserExpression(net.sf.jsqlparser.expression.operators.relational.InExpression expression) {
        return null;
    }

    @Override
    public Class getStandardExpressionClass() {
        return InExpression.class;
    }

    @Override
    public Class getJSqlParserExpressionClass() {
        return net.sf.jsqlparser.expression.operators.relational.InExpression.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy