com.dream.template.condition.EqCondition 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.MarkInvoker;
import com.dream.system.util.SystemUtil;
import java.lang.reflect.Field;
public class EqCondition implements Condition {
@Override
public String getCondition(String column, Field field) {
return SystemUtil.key(column) + "=" + AntlrUtil.invokerSQL(MarkInvoker.FUNCTION, Invoker.DEFAULT_NAMESPACE, field.getName());
}
}