Sorry for the bad format in the patch, here is the patch again:

----------------------------------------------------------------------------
Edgar Gonzalez Gonzalez
VALHALLA Project, s.a.
Chief Technology Officer
Web: www.valhallaproject.com
E-mail: [EMAIL PROTECTED]
Phone: +58-212-242.4379 / 6662 / 4055 / 6475
Fax: +58-212-242.6809

"The limits of my language mean the limits of my world."
Ludwig Wittgenstein

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

Index: SequenceIdGenerator.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/oid/Sequen
ceIdGenerator.java,v
retrieving revision 1.5
diff -u -r1.5 SequenceIdGenerator.java
--- SequenceIdGenerator.java 16 Jul 2002 14:57:28 -0000 1.5
+++ SequenceIdGenerator.java 14 Aug 2002 18:39:13 -0000
@@ -56,6 +56,7 @@

 import java.math.BigDecimal;
 import java.sql.Connection;
+import org.apache.log4j.Category;
 import org.apache.torque.adapter.DB;
 import com.workingdogs.village.QueryDataSet;
 import com.workingdogs.village.Record;
@@ -74,6 +75,13 @@
     private DB dbAdapter;

     /**
+     * Category used for logging.
+     */
+    Category category =
+        Category.getInstance(SequenceIdGenerator.class.getName());
+
+
+    /**
      * Creates an IdGenerator which will work with the specified database.
      *
      * @param adapter the adapter that knows the correct sql syntax.
@@ -182,7 +190,7 @@
         throws Exception
     {
         String idSql = dbAdapter.getIDMethodSQL(keyInfo);
-        System.out.println(idSql);
+        category.debug(idSql);

         // Execute the query.
         QueryDataSet qds = new QueryDataSet( connection, idSql );




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to