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

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

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

import com.jn.langx.util.function.Supplier;
import com.jn.sqlhelper.dialect.expression.ModeExpression;
import net.sf.jsqlparser.expression.operators.arithmetic.Modulo;

public class ModeExpressionConverter extends BinaryExpressionConverter {

    public ModeExpressionConverter() {
        setJsqlparserExpressionSupplier(new Supplier() {
            @Override
            public Modulo get(ModeExpression input) {
                return new Modulo();
            }
        });
    }

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

    @Override
    public Class getJSqlParserExpressionClass() {
        return Modulo.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy