org.redkalex.source.parser.NativeSqlFragment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redkale-plugins Show documentation
Show all versions of redkale-plugins Show documentation
Redkale-Plugins -- java framework
/*
*
*/
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