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); }
public String[] getDBLanguages() { Set<String> tempList = new HashSet<String>(); for (SupportDBUrlType type : SupportDBUrlType.values()) { String language = type.getLanguage(); if (supportDBUrlMap.containsKey(type.getDBKey())) { tempList.add(language); } } String[] dbLanguages = tempList.toArray(new String[tempList.size()]); Arrays.sort(dbLanguages); return dbLanguages; }