Search in sources :

Example 11 with DatabaseCategory

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;
}
Also used : DatabaseCategory(com.ctrip.platform.dal.daogen.enums.DatabaseCategory)

Aggregations

DatabaseCategory (com.ctrip.platform.dal.daogen.enums.DatabaseCategory)11 GenTaskByTableViewSp (com.ctrip.platform.dal.daogen.entity.GenTaskByTableViewSp)4 Status (com.ctrip.platform.dal.daogen.domain.Status)2 GenTaskBySqlBuilder (com.ctrip.platform.dal.daogen.entity.GenTaskBySqlBuilder)2 Progress (com.ctrip.platform.dal.daogen.entity.Progress)2 AbstractParameterHost (com.ctrip.platform.dal.daogen.host.AbstractParameterHost)2 Callable (java.util.concurrent.Callable)2 StoredProcedure (com.ctrip.platform.dal.daogen.domain.StoredProcedure)1 CSharpCodeGenContext (com.ctrip.platform.dal.daogen.generator.csharp.CSharpCodeGenContext)1 JavaCodeGenContext (com.ctrip.platform.dal.daogen.generator.java.JavaCodeGenContext)1 JavaColumnNameResultSetExtractor (com.ctrip.platform.dal.daogen.host.java.JavaColumnNameResultSetExtractor)1 JavaParameterHost (com.ctrip.platform.dal.daogen.host.java.JavaParameterHost)1 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 HashMap (java.util.HashMap)1