<?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: Modify the JAVA Code and regenerate the .jar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236305#M25058</link>
    <description>&lt;P&gt;Thank you very much. I was able to modify the appropriate javajet file and got the results I wanted.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 12:07:59 GMT</pubDate>
    <dc:creator>Dobby1</dc:creator>
    <dc:date>2020-03-11T12:07:59Z</dc:date>
    <item>
      <title>Modify the JAVA Code and regenerate the .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236302#M25055</link>
      <description>&lt;P&gt;Hi I need to make a few minor modifications to the JAVA code generated by Talend and then regenerate the JAR file to test a performance issue that I am experiencing. When I build the Job, I see the source JAVA file and I am able to make the modification that I need and so my question is how would I go about rebuilding the .jar file from that modified .java source code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to run: javac &amp;lt;jobname&amp;gt;.java I get a bunch of errors "error: package routines does not exist ...import routines.DataOperation;...."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The modifications I want to make are:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Print the actual SQL prepared statement that is being sent to the database to do the insert&lt;/LI&gt;
 &lt;LI&gt;Print the time it takes to create the batch of records to be inserted&lt;/LI&gt;
 &lt;LI&gt;Print the time it takes to commit the records to the database&lt;/LI&gt;
 &lt;LI&gt;Change&amp;nbsp;pstmt_tDBOutput_1.setNull(1, java.sql.Types.&lt;FONT color="#FF0000"&gt;DATE&lt;/FONT&gt;); to&amp;nbsp;pstmt_tDBOutput_1.setNull(1, java.sql.Types.&lt;FONT color="#FF0000"&gt;TIMESTAMP&lt;/FONT&gt;);&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am on Windows and using Talend Studio Version: 7.2.1.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236302#M25055</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2024-11-16T03:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the JAVA Code and regenerate the .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236303#M25056</link>
      <description>Hi 
&lt;BR /&gt;You can not modify the generated Java code of job, the change will be not be saved. 
&lt;BR /&gt;you can modify the source files of component, the source files of official components are located in &amp;lt;studio installation&amp;gt;\plugins\org.talend.designer.components.localprovider_7.1.1.20181026_1147\components. 
&lt;BR /&gt;About component development, please refer to this documentation. 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/reader/2zoPbB~8uGpH2pU_w0z6Bg/d006zJ6FDVR1cGuZlwiwHQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/2zoPbB~8uGpH2pU_w0z6Bg/d006zJ6FDVR1cGuZlwiwHQ&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Note that don't forget to backup the component folder before you modify the component. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 09 Mar 2020 01:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236303#M25056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-09T01:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the JAVA Code and regenerate the .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236304#M25057</link>
      <description>&lt;P&gt;Thank you. I have looked in the directory and have seen the files. I'm trying to see exactly which file I need to modify and how I need to modify it.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236304#M25057</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2020-03-10T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the JAVA Code and regenerate the .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236305#M25058</link>
      <description>&lt;P&gt;Thank you very much. I was able to modify the appropriate javajet file and got the results I wanted.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 12:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236305#M25058</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2020-03-11T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the JAVA Code and regenerate the .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236306#M25059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After modifying the .javajet file do I need to perform any other step for Talend to pickup the change to the component? I changed the following lings in the below files but I don't think it is reflected in the generated code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---------- TMSSQLOUTPUT_END.JAVAJET &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[168] &amp;lt;%=prefix+cid%&amp;gt;.setNull(count&amp;lt;%=cid%&amp;gt;,java.sql.Types.DATE);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---------- TMSSQLOUTPUT_MAIN.JAVAJET &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[170] &amp;lt;%=prefix+cid%&amp;gt;.setNull(counter&amp;lt;%=cid%&amp;gt;,java.sql.Types.DATE); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The java.sql.Types.DATE was changed to java.sql.Types.TIMESTAMP.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 03:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Modify-the-JAVA-Code-and-regenerate-the-jar/m-p/2236306#M25059</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2020-04-07T03:01:45Z</dc:date>
    </item>
  </channel>
</rss>

