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

com.dream.template.condition.EndWithCondition 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;

public class EndWithCondition implements Condition {

    @Override
    public String getCondition(String table, String column, String field) {
        return SystemUtil.key(table) + "." + SystemUtil.key(column) + " like concat('%'," + AntlrUtil.invokerSQL(MarkInvoker.FUNCTION, Invoker.DEFAULT_NAMESPACE, field) + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy