db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r453361 - /db/ojb/trunk/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
Date Thu, 05 Oct 2006 20:24:46 GMT
Author: arminw
Date: Thu Oct  5 13:24:45 2006
New Revision: 453361

URL: http://svn.apache.org/viewvc?view=rev&rev=453361
Log:
use StatementManager to close resources

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java?view=diff&rev=453361&r1=453360&r2=453361
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
(original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
Thu Oct  5 13:24:45 2006
@@ -288,16 +288,7 @@
         }
         finally
         {
-            try
-            {
-                if (stmt != null) stmt.close();
-            }
-            catch (SQLException sqle)
-            {
-                if(log.isDebugEnabled())
-                    log.debug("Threw SQLException while in createSequence and closing stmt",
sqle);
-                // ignore it
-            }
+            broker.serviceStatementManager().closeResources(stmt, null);
         }
     }
 }



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