<?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 Re: Talend ETL - Mapping Java Object to Oracle Connection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249811#M34237</link>
    <description>you can directly use tPOP to retrieve mails.
&lt;BR /&gt;Regards,</description>
    <pubDate>Thu, 30 Aug 2018 13:09:55 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2018-08-30T13:09:55Z</dc:date>
    <item>
      <title>Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249810#M34236</link>
      <description>&lt;P&gt;Hi, i am new in using Talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a java class that call gmail api and return the emails. Then i want to insert the emails to the database (Oracle). How to map the email object that returned from java code to Database?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 11:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249810#M34236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-30T11:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249811#M34237</link>
      <description>you can directly use tPOP to retrieve mails.
&lt;BR /&gt;Regards,</description>
      <pubDate>Thu, 30 Aug 2018 13:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249811#M34237</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-30T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249812#M34238</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i need to do some formatting, transform and processing email content also get all email information such as from, to, in-reply-to, etc with java code so I think I still need using java code then insert the processed data to DB. Is there any way to mapping between java object and oracle? What component i need to do this job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the scenario i want:&lt;/P&gt;&lt;P&gt;1. Call Gmail Api and get&amp;nbsp;list of email threads&amp;nbsp;then process it, then return processed List&amp;lt;Thread&amp;gt; (each email thread contain information such as thread id, messages etc)&lt;/P&gt;&lt;P&gt;2. Loop and mapping each Thread to insert it to DB (one thread one row, example Thread A become insert into table_x (threadId, messages, etc) VALUES (A.getThreadId(), A.getMessages(), etc)&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 02:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249812#M34238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-31T02:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249813#M34239</link>
      <description>there is 3 components:
&lt;BR /&gt;tJava
&lt;BR /&gt;tJavaRow
&lt;BR /&gt;tJavaFlex (this is the one you need)
&lt;BR /&gt;just put component into jog select it and press F1 to have description and samples.
&lt;BR /&gt;Good luck</description>
      <pubDate>Fri, 31 Aug 2018 09:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249813#M34239</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-31T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249814#M34240</link>
      <description>&lt;P&gt;Ok, thank you for your answer.&lt;/P&gt;&lt;P&gt;I will try it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 02:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249814#M34240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T02:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249815#M34241</link>
      <description>&lt;P&gt;Hi, i have successfully insert to database from java component using:&lt;/P&gt;&lt;P&gt;tJavaFlex -&amp;gt; tMap -&amp;gt; tOracleRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need to insert the data into three table in one transaction in this sequence:&lt;/P&gt;&lt;P&gt;1. Table Master&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Table Detail&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Table Email (Have foreign key from table Master I)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have two question:&lt;/P&gt;&lt;P&gt;1. How to pass the sequence id that got from successfully inserted Master table to the Table Email?&lt;/P&gt;&lt;P&gt;2. How to rollback other success transaction if there is one failed transaction in one table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What component that I can use for this scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 08:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249815#M34241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249816#M34242</link>
      <description>there is multiple solutions.&lt;BR /&gt;The cleanest one is to write a stored procedure to insert email. so every clients app can use it.&lt;BR /&gt;if you have a sequence you can also call nextId from the sequence before inserting.&lt;BR /&gt;an other one is to insert max(id)+1&lt;BR /&gt;&lt;BR /&gt;When you have got your id you can link it to your data (use tMap with link retrieving next Id for each row).&lt;BR /&gt;&lt;BR /&gt;for rollback, it also depend on how it work.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249816#M34242</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-03T09:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249817#M34243</link>
      <description>&lt;P&gt;So, what is the best way for rollback one record as one transaction? Is there any way to group three tOracleRow into one transaction?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 10:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249817#M34243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T10:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249818#M34244</link>
      <description>You can catch error on each components using onComponetError and link it to a rollback (tCommit)&lt;BR /&gt;&lt;BR /&gt;If you are using SQL procedure to insert data you have to manage transaction into it.&lt;BR /&gt;&lt;BR /&gt;You can also write a job for one mail and call it from another job who manage tRunJob error.&lt;BR /&gt;&lt;BR /&gt;It depends on your requirements?&lt;BR /&gt;&lt;BR /&gt;Question is how many mail do you have to insert and how often?&lt;BR /&gt;How many error do you expects?&lt;BR /&gt;What do you want to do with error?&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249818#M34244</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-03T11:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249819#M34245</link>
      <description>&lt;P&gt;For this case i will try to use begin/end transaction query to group them in one transaction.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, i have another problem. How to correctly&amp;nbsp;get value from tMap in tOracleRow?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my schema&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_39.png" style="width: 538px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzNI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139099iA30DDAF22FEA41C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzNI.png" alt="0683p000009LzNI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The thread Id in row1 and email is correct but after insert, the value in DB is become "165" not "165...". I use String type data in Tmap and my query code is:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"Insert INTO ...." + email.threadId + "," + "...."&lt;/PRE&gt; 
&lt;P&gt;If I insert manually with my query to the database, the data is correctly added with same value.&lt;/P&gt; 
&lt;P&gt;Is it because type of data in email.threadId become number? How to correctly call the data from tMap variable?&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtaO"&gt;Screenshot_39.png&lt;/A&gt;</description>
      <pubDate>Tue, 04 Sep 2018 09:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249819#M34245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249820#M34246</link>
      <description>&lt;P&gt;"Insert INTO ....&lt;FONT color="#ff0000"&gt;'&lt;/FONT&gt;" + email.threadId + "&lt;FONT color="#ff0000"&gt;'&lt;/FONT&gt;," + "...."&lt;BR /&gt;did you add&amp;nbsp;&lt;FONT color="#ff0000"&gt;'&lt;/FONT&gt; around SQL String?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 09:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249820#M34246</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-04T09:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ETL - Mapping Java Object to Oracle Connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249821#M34247</link>
      <description>&lt;P&gt;Thank you, it is worked.&lt;/P&gt;&lt;P&gt;I made simple mistake.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 09:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ETL-Mapping-Java-Object-to-Oracle-Connection/m-p/2249821#M34247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T09:59:42Z</dc:date>
    </item>
  </channel>
</rss>

