<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Iterate over java array list and update database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277119#M52994</link>
    <description>Hi, 
&lt;BR /&gt;I have a scenario where I need to iterate over java arraylist and then I need to update database table for each entry in the arraylist. Fore each record I need to lookup other tables as well. Therefore the iterated record should be passed through a tMap as well. Can someone please let me know what are the components and how to arrange them in order to get this done? 
&lt;BR /&gt;Thanks and Regards, 
&lt;BR /&gt;Asanka.&amp;nbsp;</description>
    <pubDate>Fri, 06 Feb 2015 02:50:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-06T02:50:13Z</dc:date>
    <item>
      <title>Iterate over java array list and update database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277119#M52994</link>
      <description>Hi, 
&lt;BR /&gt;I have a scenario where I need to iterate over java arraylist and then I need to update database table for each entry in the arraylist. Fore each record I need to lookup other tables as well. Therefore the iterated record should be passed through a tMap as well. Can someone please let me know what are the components and how to arrange them in order to get this done? 
&lt;BR /&gt;Thanks and Regards, 
&lt;BR /&gt;Asanka.&amp;nbsp;</description>
      <pubDate>Fri, 06 Feb 2015 02:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277119#M52994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T02:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate over java array list and update database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277120#M52995</link>
      <description>on tJava component, get each item from arrayList and append each item to a string, the final string looks like: 
&lt;BR /&gt;... 
&lt;BR /&gt;String items="a,b,c,..."; 
&lt;BR /&gt;And then, store the string to a global var or context var for used later. 
&lt;BR /&gt;On next subjob, generate this string on tFixedFlowInput (get the value of global var or context var), normalize the input string with tNormalize component to generate multiple lines, and then map the lookup data. 
&lt;BR /&gt;tJava 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| 
&lt;BR /&gt;tFixedFlowInput--main--tNormalize--main--tMap--main--tDatabaseOutputComponent 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lookup 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 06 Feb 2015 04:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277120#M52995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T04:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate over java array list and update database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277121#M52996</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks for your reply. But this wont help in my scenario as there are millions of records in the arraylist and those records represents a custom object (not strings). Is there a way to iterate the list and process each record (each item of the list) through tMap? 
&lt;BR /&gt;Thanks and Regards, 
&lt;BR /&gt;Asanka.</description>
      <pubDate>Fri, 06 Feb 2015 05:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277121#M52996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T05:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate over java array list and update database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277122#M52997</link>
      <description>Hi Asanka&amp;nbsp;
&lt;BR /&gt;This is just a simple example with basic data type. For complex type, like custom object in you case, you can use tJavaFlex to iterate the list and process each record.
&lt;BR /&gt;BR
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 08 Feb 2015 09:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterate-over-java-array-list-and-update-database/m-p/2277122#M52997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-08T09:42:32Z</dc:date>
    </item>
  </channel>
</rss>

