db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence SequenceManagerNextValImpl.java
Date Fri, 19 Dec 2003 16:56:13 GMT
arminw      2003/12/19 08:56:13

  Modified:    src/java/org/apache/ojb/broker/util/sequence
                        SequenceManagerNextValImpl.java
  Log:
  don't close any resources by your own, let StatementManager do that job
  
  Revision  Changes    Path
  1.12      +5 -5      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerNextValImpl.java
  
  Index: SequenceManagerNextValImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerNextValImpl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SequenceManagerNextValImpl.java	17 Dec 2003 10:23:12 -0000	1.11
  +++ SequenceManagerNextValImpl.java	19 Dec 2003 16:56:13 -0000	1.12
  @@ -226,9 +226,9 @@
           {
               try
               {
  -                if (stmt != null) stmt.close();
  +                getBrokerForClass().serviceStatementManager().closeResources(stmt, null);
               }
  -            catch (SQLException ignore)
  +            catch (Exception ignore)
               {
               }
           }
  @@ -242,9 +242,9 @@
           {
               try
               {
  -                if (stmt != null) stmt.close();
  +                getBrokerForClass().serviceStatementManager().closeResources(stmt, null);
               }
  -            catch (SQLException ignore)
  +            catch (Exception ignore)
               {
               }
           }
  
  
  

---------------------------------------------------------------------
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