gu.sql2java.mysql.MysqlSqlFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql2java-manager Show documentation
Show all versions of sql2java-manager Show documentation
sql2java manager class package for accessing database
package gu.sql2java.mysql;
import com.google.common.base.Predicates;
import gu.sql2java.SqlFormatters.QuoteFormatter;
/**
* @author guyadong
* @since 3.14.0
*/
public class MysqlSqlFormatter extends QuoteFormatter {
public MysqlSqlFormatter() {
super("`");
}
@Override
public String tablename(String tablename) {
return quoteIf(tablename, Predicates.alwaysTrue());
}
@Override
public String columname(String columname) {
return quoteIf(columname, Predicates.alwaysTrue());
}
}