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

org.redkalex.source.parser.NativeSqlFragment Maven / Gradle / Ivy

There is a newer version: 2.7.7
Show newest version
/*
 *
 */
package org.redkalex.source.parser;

/** @author zhangjx */
public class NativeSqlFragment {

    // 是否是${xx.xx}参数
    private final boolean dollarable;

    // sql语句片段或者${}参数名或者:jdbcNamedParameter
    private final String text;

    public NativeSqlFragment(boolean signable, String text) {
        this.dollarable = signable;
        this.text = text;
    }

    public boolean isDollarable() {
        return dollarable;
    }

    public String getText() {
        return text;
    }

    @Override
    public String toString() {
        return dollarable ? ("${" + text + "}") : text;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy