You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/05/11 08:32:34 UTC

svn commit: r773476 - in /camel/trunk/components/camel-ibatis/src: main/java/org/apache/camel/component/ibatis/IBatisProducer.java test/resources/log4j.properties

Author: davsclaus
Date: Mon May 11 06:32:33 2009
New Revision: 773476

URL: http://svn.apache.org/viewvc?rev=773476&view=rev
Log:
CAMEL-1596: Polished

Modified:
    camel/trunk/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/IBatisProducer.java
    camel/trunk/components/camel-ibatis/src/test/resources/log4j.properties

Modified: camel/trunk/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/IBatisProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/IBatisProducer.java?rev=773476&r1=773475&r2=773476&view=diff
==============================================================================
--- camel/trunk/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/IBatisProducer.java (original)
+++ camel/trunk/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/IBatisProducer.java Mon May 11 06:32:33 2009
@@ -40,9 +40,6 @@
         this.statement = endpoint.getStatement();
     }
 
-    /**
-     * Calls insert on the SqlMapClient.
-     */
     public void process(Exchange exchange) throws Exception {
         switch (endpoint.getStatementType()) {
         case QueryForObject:
@@ -60,17 +57,6 @@
         }
     }
 
-    private void doDefault(Exchange exchange) throws Exception {
-        Object body = exchange.getIn().getBody();
-        if (ObjectHelper.isEmpty(body)) {
-            // must be a poll so lets do a query
-            doQueryForList(exchange);
-        } else {
-            // otherwise we insert
-            doInsert(exchange);
-        }
-    }
-
     private void doQueryForObject(Exchange exchange) throws Exception {
         SqlMapClient client = endpoint.getSqlMapClient();
 

Modified: camel/trunk/components/camel-ibatis/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ibatis/src/test/resources/log4j.properties?rev=773476&r1=773475&r2=773476&view=diff
==============================================================================
--- camel/trunk/components/camel-ibatis/src/test/resources/log4j.properties (original)
+++ camel/trunk/components/camel-ibatis/src/test/resources/log4j.properties Mon May 11 06:32:33 2009
@@ -22,7 +22,7 @@
 
 # uncomment the following to enable debug of Camel
 #log4j.logger.org.apache.camel=DEBUG
-#log4j.logger.org.apache.ibatis=DEBUG
+#log4j.logger.com.ibatis=DEBUG
 
 #log4j.logger.org.apache.activemq=DEBUG