db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata ConnectionDescriptorXmlHandler.java
Date Tue, 16 Dec 2003 21:29:01 GMT
brj         2003/12/16 13:29:01

  Modified:    src/java/org/apache/ojb/broker/metadata
                        ConnectionDescriptorXmlHandler.java
  Log:
  enhancements by robert sfeir
  
  Revision  Changes    Path
  1.7       +9 -9      db-ojb/src/java/org/apache/ojb/broker/metadata/ConnectionDescriptorXmlHandler.java
  
  Index: ConnectionDescriptorXmlHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ConnectionDescriptorXmlHandler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ConnectionDescriptorXmlHandler.java	6 Dec 2003 15:54:56 -0000	1.6
  +++ ConnectionDescriptorXmlHandler.java	16 Dec 2003 21:29:01 -0000	1.7
  @@ -251,23 +251,23 @@
   
                           String maxActive = atts.getValue(tags.getTagById(CON_MAX_ACTIVE));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_MAX_ACTIVE)
+ ": " + maxActive);
  -                        if (checkString(maxActive)) m_CurrentCPD.setMaxActive(new Integer(maxActive).intValue());
  +                        if (checkString(maxActive)) m_CurrentCPD.setMaxActive(Integer.parseInt(maxActive));
   
                           String maxIdle = atts.getValue(tags.getTagById(CON_MAX_IDLE));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_MAX_IDLE)
+ ": " + maxIdle);
  -                        if (checkString(maxIdle)) m_CurrentCPD.setMaxIdle(new Integer(maxIdle).intValue());
  +                        if (checkString(maxIdle)) m_CurrentCPD.setMaxIdle(Integer.parseInt(maxIdle));
   
                           String maxWait = atts.getValue(tags.getTagById(CON_MAX_WAIT));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_MAX_WAIT)
+ ": " + maxWait);
  -                        if (checkString(maxWait)) m_CurrentCPD.setMaxWait(new Integer(maxWait).intValue());
  +                        if (checkString(maxWait)) m_CurrentCPD.setMaxWait(Integer.parseInt(maxWait));
   
                           String minEvictableIdleTimeMillis = atts.getValue(tags.getTagById(CON_MIN_EVICTABLE_IDLE_TIME_MILLIS));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_MIN_EVICTABLE_IDLE_TIME_MILLIS)
+ ": " + minEvictableIdleTimeMillis);
  -                        if (checkString(minEvictableIdleTimeMillis)) m_CurrentCPD.setMinEvictableIdleTimeMillis(new
Long(minEvictableIdleTimeMillis).longValue());
  +                        if (checkString(minEvictableIdleTimeMillis)) m_CurrentCPD.setMinEvictableIdleTimeMillis(Long.parseLong(minEvictableIdleTimeMillis));
   
                           String numTestsPerEvictionRun = atts.getValue(tags.getTagById(CON_NUM_TESTS_PER_EVICTION_RUN));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_NUM_TESTS_PER_EVICTION_RUN)
+ ": " + numTestsPerEvictionRun);
  -                        if (checkString(numTestsPerEvictionRun)) m_CurrentCPD.setNumTestsPerEvictionRun(new
Integer(numTestsPerEvictionRun).intValue());
  +                        if (checkString(numTestsPerEvictionRun)) m_CurrentCPD.setNumTestsPerEvictionRun(Integer.parseInt(numTestsPerEvictionRun));
   
                           String testOnBorrow = atts.getValue(tags.getTagById(CON_TEST_ON_BORROW));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_ON_BORROW)
+ ": " + testOnBorrow);
  @@ -283,11 +283,11 @@
   
                           String timeBetweenEvictionRunsMillis = atts.getValue(tags.getTagById(CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS)
+ ": " + timeBetweenEvictionRunsMillis);
  -                        if (checkString(timeBetweenEvictionRunsMillis)) m_CurrentCPD.setTimeBetweenEvictionRunsMillis(new
Long(timeBetweenEvictionRunsMillis).longValue());
  +                        if (checkString(timeBetweenEvictionRunsMillis)) m_CurrentCPD.setTimeBetweenEvictionRunsMillis(Long.parseLong(timeBetweenEvictionRunsMillis));
   
                           String whenExhaustedAction = atts.getValue(tags.getTagById(CON_WHEN_EXHAUSTED_ACTION));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_WHEN_EXHAUSTED_ACTION)
+ ": " + whenExhaustedAction);
  -                        if (checkString(whenExhaustedAction)) m_CurrentCPD.setWhenExhaustedAction(new
Byte(whenExhaustedAction).byteValue());
  +                        if (checkString(whenExhaustedAction)) m_CurrentCPD.setWhenExhaustedAction(Byte.parseByte(whenExhaustedAction));
   
                           String connectionFactoryStr = atts.getValue(tags.getTagById(CONNECTION_FACTORY));
                           if (isDebug) logger.debug("     " + tags.getTagById(CONNECTION_FACTORY)
+ ": " + connectionFactoryStr);
  @@ -308,7 +308,7 @@
   
                           String removeAbandonedTimeout = atts.getValue(tags.getTagById(CON_REMOVE_ABANDONED_TIMEOUT));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_REMOVE_ABANDONED_TIMEOUT)
+ ": " + removeAbandonedTimeout);
  -                        if (checkString(removeAbandonedTimeout)) m_CurrentCPD.setRemoveAbandonedTimeout(new
Integer(removeAbandonedTimeout).intValue());
  +                        if (checkString(removeAbandonedTimeout)) m_CurrentCPD.setRemoveAbandonedTimeout(Integer.parseInt(removeAbandonedTimeout));
   
                           break;
                       }
  
  
  

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


Mime
View raw message