public void changeAllDBNmae(String dbName) {
   Iterator<String> it = supportDBUrlMap.keySet().iterator();
   while (it.hasNext()) {
     SupportDBUrlType dbType = supportDBUrlMap.get(it.next());
     if (dbType.getDBName() != null) {
       dbType.setDBName(dbName);
     }
   }
 }
 public String getDBUrl(SupportDBUrlType dbType) {
   return getDBUrl(
       dbType.getDBKey(),
       dbType.getHostName(),
       dbType.getPort(),
       dbType.getDBName(),
       dbType.getDataSource(),
       dbType.getParamSeprator() != null
           ? PluginConstant.DEFAULT_PARAMETERS
           : PluginConstant.EMPTY_STRING);
 }
 /**
  * Get the dburl via the dbType, and the dburl content come from the default value of
  * SupportDBUrlType.
  *
  * @param dbType
  * @return
  */
 public String getDefaultDBUrl(String dbType) {
   String propUrlValue = PROP.getProperty(dbType);
   SupportDBUrlType defaultUrlType = supportDBUrlMap.get(dbType);
   // defaultUrlType = defaultUrlType == null ? SupportDBUrlType.ODBCDEFAULTURL : defaultUrlType;
   defaultUrlType = defaultUrlType == null ? SupportDBUrlType.MYSQLDEFAULTURL : defaultUrlType;
   if (propUrlValue == null) {
     return PluginConstant.EMPTY_STRING;
   }
   Object[] args = {
     defaultUrlType.getHostName(),
     defaultUrlType.getPort(),
     defaultUrlType.getDBName(),
     defaultUrlType.getDataSource()
   };
   return MessageFormat.format(propUrlValue, args);
 }