use of com.ctrip.platform.dal.daogen.enums.DatabaseCategory in project dal by ctripcorp.
the class DbUtils method getDatabaseCategory.
public static DatabaseCategory getDatabaseCategory(String allInOneName) throws Exception {
DatabaseCategory dbCategory = DatabaseCategory.SqlServer;
String dbType = getDbType(allInOneName);
if (null != dbType && !dbType.equalsIgnoreCase("Microsoft SQL Server")) {
dbCategory = DatabaseCategory.MySql;
}
return dbCategory;
}
Aggregations