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

com.dream.template.condition.InCondition Maven / Gradle / Ivy

package com.dream.template.condition;

import com.dream.antlr.invoker.Invoker;
import com.dream.antlr.util.AntlrUtil;
import com.dream.system.antlr.invoker.ForEachInvoker;
import com.dream.system.util.SystemUtil;

import java.lang.reflect.Field;

public class InCondition implements Condition {

    @Override
    public String getCondition(String column, Field field) {
        return SystemUtil.key(column) + " in (" + AntlrUtil.invokerSQL(ForEachInvoker.FUNCTION, Invoker.DEFAULT_NAMESPACE, field.getName()) + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy