You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2013/09/18 15:20:49 UTC

svn commit: r878954 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache jdbc.html

Author: buildbot
Date: Wed Sep 18 13:20:48 2013
New Revision: 878954

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/jdbc.html

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Wed Sep 18 13:20:48 2013
@@ -8432,13 +8432,16 @@ jdbc:dataSourceName[?options]
 
 <h3><a shape="rect" name="BookComponentAppendix-Options"></a>Options</h3>
 
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>readSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The default maximum number of rows that can be read by a polling query. The default value is 0. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>statement.&lt;xxx&gt;</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Sets additional options on the <tt>java.sql.Statement</tt> that is used behind the scenes to execute the queries. For instance, <tt>statement.maxRows=10</tt>. For detailed documentation, see the <a shape="rect" class="external-l
 ink" href="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" rel="nofollow"><tt>java.sql.Statement</tt> javadoc</a> documentation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useJDBC4ColumnNameAndLabelSemantics</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.2:</b> Sets whether to use JDBC 4/3 column label/name semantics. You can use this option to turn it <tt>false</tt> in case you have issues with your JDBC driver to select data. This only applies when using <tt>SQL SELECT</tt> using aliases (e.g. <tt>SQL SELECT id as identifier, name as given_name from persons</tt>). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>resetAutoCommit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Camel will set the autoCommit on the JDBC connection to be
  false, commit the change after executed the statement and reset the autoCommit flag of the connection at the end, if the resetAutoCommit is true. If the JDBC connection doesn't support to reset the autoCommit flag, you can set the resetAutoCommit flag to be false, and Camel will not try to reset the autoCommit flag.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNamedParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Whether to allow using named parameters in the queries. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>prepareStatementStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Allows to plugin to use a custom <tt>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</tt> to control preparation of the query and prepared st
 atement. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useHeadersAsParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Set this option to <tt>true</tt> to use the <tt>prepareStatementStrategy</tt> with named parameters. This allows to define queries with named placeholders, and use headers with the dynamic values for the query placeholders. </td></tr></tbody></table>
+<div class="confluenceTableSmall"><div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>readSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The default maximum number of rows that can be read by a polling query. The default value is 0. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>statement.&lt;xxx&gt;</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Sets additional options on the <tt>java.sql.Statement</tt> that is used behind the scenes to execute the queries. For instance, <tt>statement.maxRows=10</tt>. For detailed documentation, see the <a shape="rect" class="external-l
 ink" href="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" rel="nofollow"><tt>java.sql.Statement</tt> javadoc</a> documentation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useJDBC4ColumnNameAndLabelSemantics</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.2:</b> Sets whether to use JDBC 4/3 column label/name semantics. You can use this option to turn it <tt>false</tt> in case you have issues with your JDBC driver to select data. This only applies when using <tt>SQL SELECT</tt> using aliases (e.g. <tt>SQL SELECT id as identifier, name as given_name from persons</tt>). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>resetAutoCommit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Camel will set the autoCommit on the JDBC connection to be
  false, commit the change after executed the statement and reset the autoCommit flag of the connection at the end, if the resetAutoCommit is true. If the JDBC connection doesn't support to reset the autoCommit flag, you can set the resetAutoCommit flag to be false, and Camel will not try to reset the autoCommit flag.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNamedParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Whether to allow using named parameters in the queries. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>prepareStatementStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Allows to plugin to use a custom <tt>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</tt> to control preparation of the query and prepared st
 atement. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useHeadersAsParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Set this option to <tt>true</tt> to use the <tt>prepareStatementStrategy</tt> with named parameters. This allows to define queries with named placeholders, and use headers with the dynamic values for the query placeholders. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>outputType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>SelectList</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12.1:</b> Make the output of the producer to SelectList as List of Map, or SelectOne as single Java object in the following way:<br clear="none">
+a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( * ) FROM PROJECT will return a Long object.<br clear="none">
+b) If the query has more than one column, then it will return a Map of that result.<br clear="none">
+c) If the query resulted in more than one rows, it throws an non-unique result exception.</td></tr><tr><td></td></tr></tbody></table>
+</div>
 </div>
-
 
 <h3><a shape="rect" name="BookComponentAppendix-Result"></a>Result</h3>
-<p>The result is returned in the OUT body as an <tt>ArrayList&lt;HashMap&lt;String, Object&gt;&gt;</tt>. The <tt>List</tt> object contains the list of rows and the <tt>Map</tt> objects contain each row with the <tt>String</tt> key as the column name.</p>
+<p>By default the result is returned in the OUT body as an <tt>ArrayList&lt;HashMap&lt;String, Object&gt;&gt;</tt>. The <tt>List</tt> object contains the list of rows and the <tt>Map</tt> objects contain each row with the <tt>String</tt> key as the column name. You can use the option <tt>outputType</tt> to control the result.</p>
 
 <p><b>Note:</b> This component fetches <tt>ResultSetMetaData</tt> to be able to return the column name as the key in the <tt>Map</tt>.</p>
 

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Wed Sep 18 13:20:48 2013
@@ -29887,13 +29887,16 @@ jdbc:dataSourceName[?options]
 
 <h3><a shape="rect" name="BookInOnePage-Options"></a>Options</h3>
 
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>readSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The default maximum number of rows that can be read by a polling query. The default value is 0. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>statement.&lt;xxx&gt;</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Sets additional options on the <tt>java.sql.Statement</tt> that is used behind the scenes to execute the queries. For instance, <tt>statement.maxRows=10</tt>. For detailed documentation, see the <a shape="rect" class="external-l
 ink" href="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" rel="nofollow"><tt>java.sql.Statement</tt> javadoc</a> documentation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useJDBC4ColumnNameAndLabelSemantics</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.2:</b> Sets whether to use JDBC 4/3 column label/name semantics. You can use this option to turn it <tt>false</tt> in case you have issues with your JDBC driver to select data. This only applies when using <tt>SQL SELECT</tt> using aliases (e.g. <tt>SQL SELECT id as identifier, name as given_name from persons</tt>). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>resetAutoCommit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Camel will set the autoCommit on the JDBC connection to be
  false, commit the change after executed the statement and reset the autoCommit flag of the connection at the end, if the resetAutoCommit is true. If the JDBC connection doesn't support to reset the autoCommit flag, you can set the resetAutoCommit flag to be false, and Camel will not try to reset the autoCommit flag.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNamedParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Whether to allow using named parameters in the queries. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>prepareStatementStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Allows to plugin to use a custom <tt>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</tt> to control preparation of the query and prepared st
 atement. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useHeadersAsParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Set this option to <tt>true</tt> to use the <tt>prepareStatementStrategy</tt> with named parameters. This allows to define queries with named placeholders, and use headers with the dynamic values for the query placeholders. </td></tr></tbody></table>
+<div class="confluenceTableSmall"><div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>readSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The default maximum number of rows that can be read by a polling query. The default value is 0. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>statement.&lt;xxx&gt;</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Sets additional options on the <tt>java.sql.Statement</tt> that is used behind the scenes to execute the queries. For instance, <tt>statement.maxRows=10</tt>. For detailed documentation, see the <a shape="rect" class="external-l
 ink" href="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" rel="nofollow"><tt>java.sql.Statement</tt> javadoc</a> documentation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useJDBC4ColumnNameAndLabelSemantics</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.2:</b> Sets whether to use JDBC 4/3 column label/name semantics. You can use this option to turn it <tt>false</tt> in case you have issues with your JDBC driver to select data. This only applies when using <tt>SQL SELECT</tt> using aliases (e.g. <tt>SQL SELECT id as identifier, name as given_name from persons</tt>). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>resetAutoCommit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Camel will set the autoCommit on the JDBC connection to be
  false, commit the change after executed the statement and reset the autoCommit flag of the connection at the end, if the resetAutoCommit is true. If the JDBC connection doesn't support to reset the autoCommit flag, you can set the resetAutoCommit flag to be false, and Camel will not try to reset the autoCommit flag.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNamedParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Whether to allow using named parameters in the queries. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>prepareStatementStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Allows to plugin to use a custom <tt>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</tt> to control preparation of the query and prepared st
 atement. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useHeadersAsParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Set this option to <tt>true</tt> to use the <tt>prepareStatementStrategy</tt> with named parameters. This allows to define queries with named placeholders, and use headers with the dynamic values for the query placeholders. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>outputType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>SelectList</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12.1:</b> Make the output of the producer to SelectList as List of Map, or SelectOne as single Java object in the following way:<br clear="none">
+a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( * ) FROM PROJECT will return a Long object.<br clear="none">
+b) If the query has more than one column, then it will return a Map of that result.<br clear="none">
+c) If the query resulted in more than one rows, it throws an non-unique result exception.</td></tr><tr><td></td></tr></tbody></table>
+</div>
 </div>
-
 
 <h3><a shape="rect" name="BookInOnePage-Result"></a>Result</h3>
-<p>The result is returned in the OUT body as an <tt>ArrayList&lt;HashMap&lt;String, Object&gt;&gt;</tt>. The <tt>List</tt> object contains the list of rows and the <tt>Map</tt> objects contain each row with the <tt>String</tt> key as the column name.</p>
+<p>By default the result is returned in the OUT body as an <tt>ArrayList&lt;HashMap&lt;String, Object&gt;&gt;</tt>. The <tt>List</tt> object contains the list of rows and the <tt>Map</tt> objects contain each row with the <tt>String</tt> key as the column name. You can use the option <tt>outputType</tt> to control the result.</p>
 
 <p><b>Note:</b> This component fetches <tt>ResultSetMetaData</tt> to be able to return the column name as the key in the <tt>Map</tt>.</p>
 

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/jdbc.html
==============================================================================
--- websites/production/camel/content/jdbc.html (original)
+++ websites/production/camel/content/jdbc.html Wed Sep 18 13:20:48 2013
@@ -118,13 +118,16 @@ jdbc:dataSourceName[?options]
 
 <h3><a shape="rect" name="JDBC-Options"></a>Options</h3>
 
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>readSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The default maximum number of rows that can be read by a polling query. The default value is 0. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>statement.&lt;xxx&gt;</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Sets additional options on the <tt>java.sql.Statement</tt> that is used behind the scenes to execute the queries. For instance, <tt>statement.maxRows=10</tt>. For detailed documentation, see the <a shape="rect" class="external-l
 ink" href="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" rel="nofollow"><tt>java.sql.Statement</tt> javadoc</a> documentation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useJDBC4ColumnNameAndLabelSemantics</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.2:</b> Sets whether to use JDBC 4/3 column label/name semantics. You can use this option to turn it <tt>false</tt> in case you have issues with your JDBC driver to select data. This only applies when using <tt>SQL SELECT</tt> using aliases (e.g. <tt>SQL SELECT id as identifier, name as given_name from persons</tt>). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>resetAutoCommit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Camel will set the autoCommit on the JDBC connection to be
  false, commit the change after executed the statement and reset the autoCommit flag of the connection at the end, if the resetAutoCommit is true. If the JDBC connection doesn't support to reset the autoCommit flag, you can set the resetAutoCommit flag to be false, and Camel will not try to reset the autoCommit flag.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNamedParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Whether to allow using named parameters in the queries. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>prepareStatementStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Allows to plugin to use a custom <tt>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</tt> to control preparation of the query and prepared st
 atement. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useHeadersAsParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Set this option to <tt>true</tt> to use the <tt>prepareStatementStrategy</tt> with named parameters. This allows to define queries with named placeholders, and use headers with the dynamic values for the query placeholders. </td></tr></tbody></table>
+<div class="confluenceTableSmall"><div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>readSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The default maximum number of rows that can be read by a polling query. The default value is 0. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>statement.&lt;xxx&gt;</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Sets additional options on the <tt>java.sql.Statement</tt> that is used behind the scenes to execute the queries. For instance, <tt>statement.maxRows=10</tt>. For detailed documentation, see the <a shape="rect" class="external-l
 ink" href="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" rel="nofollow"><tt>java.sql.Statement</tt> javadoc</a> documentation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useJDBC4ColumnNameAndLabelSemantics</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.2:</b> Sets whether to use JDBC 4/3 column label/name semantics. You can use this option to turn it <tt>false</tt> in case you have issues with your JDBC driver to select data. This only applies when using <tt>SQL SELECT</tt> using aliases (e.g. <tt>SQL SELECT id as identifier, name as given_name from persons</tt>). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>resetAutoCommit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Camel will set the autoCommit on the JDBC connection to be
  false, commit the change after executed the statement and reset the autoCommit flag of the connection at the end, if the resetAutoCommit is true. If the JDBC connection doesn't support to reset the autoCommit flag, you can set the resetAutoCommit flag to be false, and Camel will not try to reset the autoCommit flag.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNamedParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Whether to allow using named parameters in the queries. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>prepareStatementStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Allows to plugin to use a custom <tt>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</tt> to control preparation of the query and prepared st
 atement. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useHeadersAsParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12:</b> Set this option to <tt>true</tt> to use the <tt>prepareStatementStrategy</tt> with named parameters. This allows to define queries with named placeholders, and use headers with the dynamic values for the query placeholders. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>outputType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>SelectList</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.12.1:</b> Make the output of the producer to SelectList as List of Map, or SelectOne as single Java object in the following way:<br clear="none">
+a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( * ) FROM PROJECT will return a Long object.<br clear="none">
+b) If the query has more than one column, then it will return a Map of that result.<br clear="none">
+c) If the query resulted in more than one rows, it throws an non-unique result exception.</td></tr><tr><td></td></tr></tbody></table>
+</div>
 </div>
-
 
 <h3><a shape="rect" name="JDBC-Result"></a>Result</h3>
-<p>The result is returned in the OUT body as an <tt>ArrayList&lt;HashMap&lt;String, Object&gt;&gt;</tt>. The <tt>List</tt> object contains the list of rows and the <tt>Map</tt> objects contain each row with the <tt>String</tt> key as the column name.</p>
+<p>By default the result is returned in the OUT body as an <tt>ArrayList&lt;HashMap&lt;String, Object&gt;&gt;</tt>. The <tt>List</tt> object contains the list of rows and the <tt>Map</tt> objects contain each row with the <tt>String</tt> key as the column name. You can use the option <tt>outputType</tt> to control the result.</p>
 
 <p><b>Note:</b> This component fetches <tt>ResultSetMetaData</tt> to be able to return the column name as the key in the <tt>Map</tt>.</p>