panda.dao.sql.expert.MariadbSqlExpert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-core Show documentation
Show all versions of panda-core Show documentation
Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.
package panda.dao.sql.expert;
import panda.dao.DB;
import panda.dao.entity.Entity;
import panda.lang.Strings;
public class MariadbSqlExpert extends MysqlSqlExpert {
@Override
public DB getDatabaseType() {
return DB.MARIADB;
}
protected String getTableOption(Entity> entity, String name, String defv) {
String v = getEntityOptionString(entity, "mariadb-" + name, defv);
if (Strings.isEmpty(v)) {
return super.getTableOption(entity, name, defv);
}
return v;
}
}