db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util SqlTypeHelper.java
Date Sat, 06 Dec 2003 15:54:56 GMT
thma        2003/12/06 07:54:56

  Modified:    src/java/org/apache/ojb/broker/util/sequence
                        SequenceManagerHighLowImpl.java
                        AbstractSequenceManager.java
               src/java/org/apache/ojb/broker/cache
                        CacheFilterClassImpl.java
               src/java/org/apache/ojb/broker/metadata
                        ConnectionDescriptorXmlHandler.java
                        RepositoryXmlHandler.java
               src/java/org/apache/ojb/broker/util/pooling
                        PoolConfiguration.java
               src/java/org/apache/ojb/broker/util SqlTypeHelper.java
  Log:
  better use Boolean.valueof instead new Boolean...
  
  Revision  Changes    Path
  1.24      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java
  
  Index: SequenceManagerHighLowImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- SequenceManagerHighLowImpl.java	6 Nov 2003 01:38:16 -0000	1.23
  +++ SequenceManagerHighLowImpl.java	6 Dec 2003 15:54:56 -0000	1.24
  @@ -165,7 +165,7 @@
           super(broker);
           grabSize = new Integer(getConfigurationProperty(PROPERTY_GRAB_SIZE, "20")).intValue();
           useGlobalSequenceIdentities =
  -                new Boolean(getConfigurationProperty(PROPERTY_GLOBAL_SEQUENCE_ID, "false")).booleanValue();
  +                Boolean.valueOf(getConfigurationProperty(PROPERTY_GLOBAL_SEQUENCE_ID, "false")).booleanValue();
           globalSequenceStart = new Long(
                   getConfigurationProperty(PROPERTY_GLOBAL_SEQUENCE_START, "10000")).longValue();
       }
  
  
  
  1.12      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java
  
  Index: AbstractSequenceManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbstractSequenceManager.java	13 Aug 2003 18:16:10 -0000	1.11
  +++ AbstractSequenceManager.java	6 Dec 2003 15:54:56 -0000	1.12
  @@ -90,7 +90,7 @@
   
       public boolean useAutoNaming()
       {
  -        return (new Boolean(getConfigurationProperty(PROPERTY_AUTO_NAMING, "true"))).booleanValue();
  +        return (Boolean.valueOf(getConfigurationProperty(PROPERTY_AUTO_NAMING, "true"))).booleanValue();
       }
   
       public String calculateSequenceName(FieldDescriptor field) throws SequenceManagerException
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterClassImpl.java
  
  Index: CacheFilterClassImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterClassImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CacheFilterClassImpl.java	12 Jun 2003 17:24:13 -0000	1.3
  +++ CacheFilterClassImpl.java	6 Dec 2003 15:54:56 -0000	1.4
  @@ -37,7 +37,7 @@
       public boolean beforeCache(Identity oid, Object obj)
       {
           String cacheable = broker.getClassDescriptor(oid.getObjectsRealClass()).getAttribute(CACHEABLE);
  -        if (cacheable == null || (new Boolean(cacheable)).booleanValue())
  +        if (cacheable == null || Boolean.valueOf(cacheable).booleanValue())
           {
               return true;
           }
  
  
  
  1.6       +6 -6      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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ConnectionDescriptorXmlHandler.java	17 Sep 2003 22:41:07 -0000	1.5
  +++ ConnectionDescriptorXmlHandler.java	6 Dec 2003 15:54:56 -0000	1.6
  @@ -271,15 +271,15 @@
   
                           String testOnBorrow = atts.getValue(tags.getTagById(CON_TEST_ON_BORROW));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_ON_BORROW)
+ ": " + testOnBorrow);
  -                        if (checkString(testOnBorrow)) m_CurrentCPD.setTestOnBorrow(new
Boolean(testOnBorrow).booleanValue());
  +                        if (checkString(testOnBorrow)) m_CurrentCPD.setTestOnBorrow(Boolean.valueOf(testOnBorrow).booleanValue());
   
                           String testOnReturn = atts.getValue(tags.getTagById(CON_TEST_ON_RETURN));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_ON_RETURN)
+ ": " + testOnReturn);
  -                        if (checkString(testOnReturn)) m_CurrentCPD.setTestOnReturn(new
Boolean(testOnReturn).booleanValue());
  +                        if (checkString(testOnReturn)) m_CurrentCPD.setTestOnReturn(Boolean.valueOf(testOnReturn).booleanValue());
   
                           String testWhileIdle = atts.getValue(tags.getTagById(CON_TEST_WHILE_IDLE));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_WHILE_IDLE)
+ ": " + testWhileIdle);
  -                        if (checkString(testWhileIdle)) m_CurrentCPD.setTestWhileIdle(new
Boolean(testWhileIdle).booleanValue());
  +                        if (checkString(testWhileIdle)) m_CurrentCPD.setTestWhileIdle(Boolean.valueOf(testWhileIdle).booleanValue());
   
                           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);
  @@ -300,11 +300,11 @@
                           // abandoned connection properties
                           String logAbandoned = atts.getValue(tags.getTagById(CON_LOG_ABANDONED));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_LOG_ABANDONED)
+ ": " + logAbandoned);
  -                        if (checkString(logAbandoned)) m_CurrentCPD.setLogAbandoned(new
Boolean(logAbandoned).booleanValue());
  +                        if (checkString(logAbandoned)) m_CurrentCPD.setLogAbandoned(Boolean.valueOf(logAbandoned).booleanValue());
   
                           String removeAbandoned = atts.getValue(tags.getTagById(CON_REMOVE_ABANDONED));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_REMOVE_ABANDONED)
+ ": " + removeAbandoned);
  -                        if (checkString(removeAbandoned)) m_CurrentCPD.setRemoveAbandoned(new
Boolean(removeAbandoned).booleanValue());
  +                        if (checkString(removeAbandoned)) m_CurrentCPD.setRemoveAbandoned(Boolean.valueOf(removeAbandoned).booleanValue());
   
                           String removeAbandonedTimeout = atts.getValue(tags.getTagById(CON_REMOVE_ABANDONED_TIMEOUT));
                           if (isDebug) logger.debug("     " + tags.getTagById(CON_REMOVE_ABANDONED_TIMEOUT)
+ ": " + removeAbandonedTimeout);
  
  
  
  1.50      +26 -26    db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java
  
  Index: RepositoryXmlHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- RepositoryXmlHandler.java	25 Oct 2003 23:59:26 -0000	1.49
  +++ RepositoryXmlHandler.java	6 Dec 2003 15:54:56 -0000	1.50
  @@ -307,7 +307,7 @@
   							acceptLocks="true"; // default is true
   						logger.debug("     " + tags.getTagById(ACCEPT_LOCKS) + ": " + acceptLocks);
                           if (isDebug) logger.debug("     " + tags.getTagById(ACCEPT_LOCKS)
+ ": " + acceptLocks);
  -                        boolean b = (new Boolean(acceptLocks)).booleanValue();
  +                        boolean b = (Boolean.valueOf(acceptLocks)).booleanValue();
                           m_CurrentCLD.setAcceptLocks(b);
   
                           //set initializationMethod attribute
  @@ -339,7 +339,7 @@
                           // set refresh attribute
                           String refresh = atts.getValue(tags.getTagById(REFRESH));
                           if (isDebug) logger.debug("     " + tags.getTagById(REFRESH) +
": " + refresh);
  -                        b = (new Boolean(refresh)).booleanValue();
  +                        b = (Boolean.valueOf(refresh)).booleanValue();
                           m_CurrentCLD.setAlwaysRefresh(b);
   
   
  @@ -417,25 +417,25 @@
   
                           String primaryKey = atts.getValue(tags.getTagById(PRIMARY_KEY));
                           if (isDebug) logger.debug("     " + tags.getTagById(PRIMARY_KEY)
+ ": " + primaryKey);
  -                        boolean b = (new Boolean(primaryKey)).booleanValue();
  +                        boolean b = (Boolean.valueOf(primaryKey)).booleanValue();
                           m_CurrentFLD.setPrimaryKey(b);
   
                           String nullable = atts.getValue(tags.getTagById(NULLABLE));
                           if (nullable != null)
                           {
                               if (isDebug) logger.debug("     " + tags.getTagById(NULLABLE)
+ ": " + nullable);
  -                            b = !(new Boolean(nullable)).booleanValue();
  +                            b = !(Boolean.valueOf(nullable)).booleanValue();
                               m_CurrentFLD.setRequired(b);
                           }
   
                           String indexed = atts.getValue(tags.getTagById(INDEXED));
                           if (isDebug) logger.debug("     " + tags.getTagById(INDEXED) +
": " + indexed);
  -                        b = (new Boolean(indexed)).booleanValue();
  +                        b = (Boolean.valueOf(indexed)).booleanValue();
                           m_CurrentFLD.setIndexed(b);
   
                           String autoincrement = atts.getValue(tags.getTagById(AUTO_INCREMENT));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_INCREMENT)
+ ": " + autoincrement);
  -                        b = (new Boolean(autoincrement)).booleanValue();
  +                        b = (Boolean.valueOf(autoincrement)).booleanValue();
                           m_CurrentFLD.setAutoIncrement(b);
   
                           String sequenceName = atts.getValue(tags.getTagById(SEQUENCE_NAME));
  @@ -444,12 +444,12 @@
   
                           String locking = atts.getValue(tags.getTagById(LOCKING));
                           if (isDebug) logger.debug("     " + tags.getTagById(LOCKING) +
": " + locking);
  -                        b = (new Boolean(locking)).booleanValue();
  +                        b = (Boolean.valueOf(locking)).booleanValue();
                           m_CurrentFLD.setLocking(b);
   
                           String updateLock = atts.getValue(tags.getTagById(UPDATE_LOCK));
                           if (isDebug) logger.debug("     " + tags.getTagById(UPDATE_LOCK)
+ ": " + updateLock);
  -                        b = (new Boolean(updateLock)).booleanValue();
  +                        b = (Boolean.valueOf(updateLock)).booleanValue();
                           m_CurrentFLD.setUpdateLock(b);
   
                           String fieldConversion = atts.getValue(tags.getTagById(FIELD_CONVERSION));
  @@ -529,7 +529,7 @@
                           // set proxy attribute
                           String proxy = atts.getValue(tags.getTagById(PROXY_REFERENCE));
                           if (isDebug) logger.debug("     " + tags.getTagById(PROXY_REFERENCE)
+ ": " + proxy);
  -                        boolean b = (new Boolean(proxy)).booleanValue();
  +                        boolean b = (Boolean.valueOf(proxy)).booleanValue();
                           m_CurrentORD.setLazy(b);
   
                           // set proxyPrefetchingLimit attribute
  @@ -547,31 +547,31 @@
                           // set refresh attribute
                           String refresh = atts.getValue(tags.getTagById(REFRESH));
                           if (isDebug) logger.debug("     " + tags.getTagById(REFRESH) +
": " + refresh);
  -                        b = (new Boolean(refresh)).booleanValue();
  +                        b = (Boolean.valueOf(refresh)).booleanValue();
                           m_CurrentORD.setRefresh(b);
   
                           // set auto-retrieve attribute
                           String autoRetrieve = atts.getValue(tags.getTagById(AUTO_RETRIEVE));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_RETRIEVE)
+ ": " + autoRetrieve);
  -                        b = (new Boolean(autoRetrieve)).booleanValue();
  +                        b = (Boolean.valueOf(autoRetrieve)).booleanValue();
                           m_CurrentORD.setCascadeRetrieve(b);
   
                           // set auto-update attribute
                           String autoUpdate = atts.getValue(tags.getTagById(AUTO_UPDATE));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_UPDATE)
+ ": " + autoUpdate);
  -                        b = (new Boolean(autoUpdate)).booleanValue();
  +                        b = (Boolean.valueOf(autoUpdate)).booleanValue();
                           m_CurrentORD.setCascadeStore(b);
   
                           //set auto-delete attribute
                           String autoDelete = atts.getValue(tags.getTagById(AUTO_DELETE));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_DELETE)
+ ": " + autoDelete);
  -                        b = (new Boolean(autoDelete)).booleanValue();
  +                        b = (Boolean.valueOf(autoDelete)).booleanValue();
                           m_CurrentORD.setCascadeDelete(b);
   
                           //set otm-dependent attribute
                           String otmDependent = atts.getValue(tags.getTagById(OTM_DEPENDENT));
                           if (isDebug) logger.debug("     " + tags.getTagById(OTM_DEPENDENT)
+ ": " + otmDependent);
  -                        b = (new Boolean(otmDependent)).booleanValue();
  +                        b = (Boolean.valueOf(otmDependent)).booleanValue();
                           m_CurrentORD.setOtmDependent(b);
   
                           break;
  @@ -654,7 +654,7 @@
                           // set proxy attribute
                           String proxy = atts.getValue(tags.getTagById(PROXY_REFERENCE));
                           if (isDebug) logger.debug("     " + tags.getTagById(PROXY_REFERENCE)
+ ": " + proxy);
  -                        boolean b = (new Boolean(proxy)).booleanValue();
  +                        boolean b = (Boolean.valueOf(proxy)).booleanValue();
                           m_CurrentCOD.setLazy(b);
   
                           // set proxyPrefetchingLimit attribute
  @@ -672,31 +672,31 @@
                           // set refresh attribute
                           String refresh = atts.getValue(tags.getTagById(REFRESH));
                           if (isDebug) logger.debug("     " + tags.getTagById(REFRESH) +
": " + refresh);
  -                        b = (new Boolean(refresh)).booleanValue();
  +                        b = (Boolean.valueOf(refresh)).booleanValue();
                           m_CurrentCOD.setRefresh(b);
   
                           // set auto-retrieve attribute
                           String autoRetrieve = atts.getValue(tags.getTagById(AUTO_RETRIEVE));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_RETRIEVE)
+ ": " + autoRetrieve);
  -                        b = (new Boolean(autoRetrieve)).booleanValue();
  +                        b = (Boolean.valueOf(autoRetrieve)).booleanValue();
                           m_CurrentCOD.setCascadeRetrieve(b);
   
                           // set auto-update attribute
                           String autoUpdate = atts.getValue(tags.getTagById(AUTO_UPDATE));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_UPDATE)
+ ": " + autoUpdate);
  -                        b = (new Boolean(autoUpdate)).booleanValue();
  +                        b = (Boolean.valueOf(autoUpdate)).booleanValue();
                           m_CurrentCOD.setCascadeStore(b);
   
                           //set auto-delete attribute
                           String autoDelete = atts.getValue(tags.getTagById(AUTO_DELETE));
                           if (isDebug) logger.debug("     " + tags.getTagById(AUTO_DELETE)
+ ": " + autoDelete);
  -                        b = (new Boolean(autoDelete)).booleanValue();
  +                        b = (Boolean.valueOf(autoDelete)).booleanValue();
                           m_CurrentCOD.setCascadeDelete(b);
   
                           //set otm-dependent attribute
                           String otmDependent = atts.getValue(tags.getTagById(OTM_DEPENDENT));
                           if (isDebug) logger.debug("     " + tags.getTagById(OTM_DEPENDENT)
+ ": " + otmDependent);
  -                        b = (new Boolean(otmDependent)).booleanValue();
  +                        b = (Boolean.valueOf(otmDependent)).booleanValue();
                           m_CurrentCOD.setOtmDependent(b);
   
                           m_CurrentCLD.addCollectionDescriptor(m_CurrentCOD);
  @@ -802,7 +802,7 @@
                           {
                               m_CurrentIndexDescriptor = new IndexDescriptor();
                               m_CurrentIndexDescriptor.setName(atts.getValue(tags.getTagById(NAME)));
  -                            m_CurrentIndexDescriptor.setUnique(new Boolean(atts.getValue(tags.getTagById(UNIQUE))).booleanValue());
  +                            m_CurrentIndexDescriptor.setUnique(Boolean.valueOf(atts.getValue(tags.getTagById(UNIQUE))).booleanValue());
                               break;
                           }
                       case INDEX_COLUMN:
  @@ -826,7 +826,7 @@
                           InsertProcedureDescriptor proc =
                               new InsertProcedureDescriptor(m_CurrentCLD,
                                                             procName,
  -                                                          new Boolean(includeAllFields).booleanValue());
  +														  Boolean.valueOf(includeAllFields).booleanValue());
                           m_CurrentProcedure = proc;
   
                           // Get the name of the field ref that will receive the
  @@ -854,7 +854,7 @@
                           UpdateProcedureDescriptor proc =
                               new UpdateProcedureDescriptor(m_CurrentCLD,
                                                             procName,
  -                                                          new Boolean(includeAllFields).booleanValue());
  +														  Boolean.valueOf(includeAllFields).booleanValue());
                           m_CurrentProcedure = proc;
   
                           // Get the name of the field ref that will receive the
  @@ -882,7 +882,7 @@
                           DeleteProcedureDescriptor proc =
                               new DeleteProcedureDescriptor(m_CurrentCLD,
                                                             procName,
  -                                                          new Boolean(includeAllPkFields).booleanValue());
  +														  Boolean.valueOf(includeAllPkFields).booleanValue());
                           m_CurrentProcedure = proc;
   
                           // Get the name of the field ref that will receive the
  @@ -932,7 +932,7 @@
                           // Set the value for the argument.
                           if ((fieldRefName != null) && (fieldRefName.trim().length()
!= 0)) {
                               arg.setValue(fieldRefName,
  -                                         new Boolean(returnValue).booleanValue());
  +										 Boolean.valueOf(returnValue).booleanValue());
                           }
   
                           // Add the argument to the procedure.
  
  
  
  1.4       +6 -6      db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolConfiguration.java
  
  Index: PoolConfiguration.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolConfiguration.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PoolConfiguration.java	9 Jan 2003 17:08:45 -0000	1.3
  +++ PoolConfiguration.java	6 Dec 2003 15:54:56 -0000	1.4
  @@ -191,7 +191,7 @@
   
       public boolean isLogAbandoned()
       {
  -        return new Boolean(getProperty(LOG_ABANDONED)).booleanValue();
  +    	return Boolean.valueOf(getProperty(LOG_ABANDONED)).booleanValue();
       }
   
       public void setLogAbandoned(boolean logAbandoned)
  @@ -201,7 +201,7 @@
   
       public boolean isRemoveAbandoned()
       {
  -        return new Boolean(getProperty(REMOVE_ABANDONED)).booleanValue();
  +        return Boolean.valueOf(getProperty(REMOVE_ABANDONED)).booleanValue();
       }
   
       public void setRemoveAbandoned(boolean removeAbandoned)
  @@ -282,7 +282,7 @@
   
       public boolean isTestOnBorrow()
       {
  -        return new Boolean(getProperty(TEST_ON_BORROW)).booleanValue();
  +        return Boolean.valueOf(getProperty(TEST_ON_BORROW)).booleanValue();
       }
   
       public void setTestOnBorrow(boolean testOnBorrow)
  @@ -293,7 +293,7 @@
   
       public boolean isTestOnReturn()
       {
  -        return new Boolean(getProperty(TEST_ON_RETURN)).booleanValue();
  +        return Boolean.valueOf(getProperty(TEST_ON_RETURN)).booleanValue();
       }
   
       public void setTestOnReturn(boolean testOnReturn)
  @@ -304,7 +304,7 @@
   
       public boolean isTestWhileIdle()
       {
  -        return new Boolean(getProperty(TEST_WHILE_IDLE)).booleanValue();
  +        return Boolean.valueOf(getProperty(TEST_WHILE_IDLE)).booleanValue();
       }
   
       public void setTestWhileIdle(boolean testWhileIdle)
  
  
  
  1.6       +7 -5      db-ojb/src/java/org/apache/ojb/broker/util/SqlTypeHelper.java
  
  Index: SqlTypeHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/SqlTypeHelper.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SqlTypeHelper.java	28 Nov 2003 14:39:59 -0000	1.5
  +++ SqlTypeHelper.java	6 Dec 2003 15:54:56 -0000	1.6
  @@ -182,6 +182,8 @@
           /*
           TODO: arminw: will this be work or should we remove this - better
           use FieldConversion in that case?
  +        comment by thma: I don't see any harm in this automatic detection of
  +        a date type.
           */
           else if (fieldType.equals(java.util.Date.class.getName()))
               result = Types.DATE;
  @@ -389,14 +391,14 @@
                       {
                           boolean boolVal = columnId == MIN_INT
                                   ? stmt.getBoolean(columnName) : stmt.getBoolean(columnId);
  -                        result = (stmt.wasNull() ? null : new Boolean(boolVal));
  +                        result = (stmt.wasNull() ? null : Boolean.valueOf(boolVal));
   
                       }
                       else
                       {
                           boolean boolVal = columnId == MIN_INT
                                   ? rs.getBoolean(columnName) : rs.getBoolean(columnId);
  -                        result = (rs.wasNull() ? null : new Boolean(boolVal));
  +                        result = (rs.wasNull() ? null : Boolean.valueOf(boolVal));
                       }
                       break;
                   }
  @@ -707,13 +709,13 @@
                       {
                           boolean boolVal = columnId == MIN_INT
                                   ? stmt.getBoolean(columnName) : stmt.getBoolean(columnId);
  -                        result = (stmt.wasNull() ? null : new Boolean(boolVal));
  +                        result = (stmt.wasNull() ? null : Boolean.valueOf(boolVal));
                       }
                       else
                       {
                           boolean boolVal = columnId == MIN_INT
                                   ? rs.getBoolean(columnName) : rs.getBoolean(columnId);
  -                        result = (rs.wasNull() ? null : new Boolean(boolVal));
  +                        result = (rs.wasNull() ? null : Boolean.valueOf(boolVal));
                       }
                       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