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

panda.dao.sql.expert.MariadbSqlExpert Maven / Gradle / Ivy

Go to download

Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.

There is a newer version: 1.8.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy