case ORACLE:
return new OracleEnvironment(dataSourceName, dataSourceFrom);
case SQLSERVER:
return new SqlServerEnvironment(dataSourceName, dataSourceFrom);
case DERBYDB:
return new DerbyEnvironment(dataSourceName, dataSourceFrom);
default:
throw new RuntimeException("unsupport database type:" + dataSourceType.name());
}
}