commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Commons Wiki] Trivial Update of "DBCP/Hibernate" by newacct
Date Wed, 27 Jan 2010 10:04:08 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for change notification.

The "DBCP/Hibernate" page has been changed by newacct.
http://wiki.apache.org/commons/DBCP/Hibernate?action=diff&rev1=3&rev2=4

--------------------------------------------------

              Properties driverProps = ConnectionProviderFactory.getConnectionProperties(props);
              if (driverProps.size() > 0) {
                  StringBuffer connectionProperties = new StringBuffer();
-                 for (Iterator iter = driverProps.keySet().iterator(); iter.hasNext();) {
+                 for (Iterator iter = driverProps.entrySet().iterator(); iter.hasNext();)
{
+                     Map.Entry entry = (Map.Entry) iter.next();
-                     String key = (String) iter.next();
+                     String key = (String) entry.getKey();
-                     String value = driverProps.getProperty(key);
+                     String value = (String) entry.getValue();
                      connectionProperties.append(key).append('=').append(value);
                      if (iter.hasNext()) {
                          connectionProperties.append(';');

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message