{"id":262385,"date":"2015-07-27T23:50:02","date_gmt":"2015-07-27T19:50:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262385"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2015-07-27T19:50:02","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262385","title":{"rendered":"\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 Oracle Form \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Java Development API(JDAPI)"},"content":{"rendered":"<p>     \t\u0414\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0444\u043e\u0440\u043c\u0430 \u043e\u0442 \u043e\u0431\u044c\u0435\u043a\u0442\u043e\u0432 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b Oracle Form(\u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u2014 fmb \u0444\u0430\u0439\u043b).<br \/>  Fmb \u2014 \u044d\u0442\u043e \u043f\u0441\u0435\u0432\u0434\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b, \u0435\u0441\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0443\u0436\u043d\u043e, PL\/SQL \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u044b \u0411\u0414 \u0442\u0430\u043c, \u043d\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0442\u0438\u043f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0444\u043e\u0440\u043c\u044b \u043e\u043d \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044e \u0432 FMT, \u043d\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0440\u0430\u0437\u0431\u043e\u0440 fmt \u0444\u0430\u0439\u043b\u0430 \u043b\u0435\u0433\u0447\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 API, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0435\u0442 \u041e\u0440\u0430\u043a\u043b.<br \/>  \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u0432\u0441\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 Java Swing, \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0439 \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c JDAPI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u043e\u0440\u043c \u043f\u043e \u043f\u043e\u043b\u043e\u0447\u043a\u0430\u043c \u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 PL\/SQL \u0438 properties, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432\u0441\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c. \u0423 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d Oracle Forms, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u0441\u0435 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435. \u0410\u0440\u0445\u0438\u0432 jar, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u0432\u0430\u0448\u0435\u0439 java \u0430\u043f\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f frmjdapi.jar, \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u043f\u043e\u0434 ORACLE_HOME, \u0441\u043a\u043e\u0440\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f %ORACLE_HOME%\\jlib\\ (Oracle Middleware) \u0438\u043b\u0438 %ORACLE_HOME%\\java\\ (Forms 10).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 fmb<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">\tJdapiModule module = null;         File theFile = new File(path);        module = JdapiModule.openModule(theFile); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">for (JdapiIterator params = ((FormModule)module).getModuleParameters(); params.hasNext();){   ModuleParameter param = (ModuleParameter) params.next();   System.out.println(param.getName());          \t\t\t} <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043f\u0438\u0441\u043e\u043a \u0431\u043b\u043e\u043a\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">for (JdapiIterator blocks = ((FormModule)module).getBlocks(); blocks.hasNext();){   Block block = (Block) blocks.next();   System.out.println(block .getName());          \t\t\t} <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Block properties<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">if (!block.getWhereClause().equals(&quot;&quot;))        \tSystem.out.println(&quot;Where Clause: &quot;+ block.getWhereClause()); if (!block.getOrderByClause().equals(&quot;&quot;)) \tSystem.out.println(&quot;Order by Clause: &quot;+ block.getOrderByClause()); if (!block.getParentName().equals(&quot;&quot;)) \tSystem.out.println(&quot;Reference Object: &quot;+ block.getParentName(); if (block.isInsertAllowed()) \tSystem.out.println(&quot;Insert Allowed: Yes&quot;); else \tSystem.out.println(&quot;Insert Allowed: No&quot;); if (block.isDeleteAllowed()) \tSystem.out.println(&quot;Delete Allowed: Yes&quot;); else \tSystem.out.println(&quot;Delete Allowed: No&quot;); if (block.isUpdateAllowed()) \tSystem.out.println(&quot;Update Allowed: Yes&quot;); else \tSystem.out.println(&quot;Update Allowed: No&quot;); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u0430. \u041c\u043e\u0439 Eclipse \u043c\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b, \u0432\u0441\u0435 \u0447\u0442\u043e \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0443\u0436\u043d\u043e. \u0422\u0430\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0444\u043e\u0440\u043c\u0435.<br \/>  \u0414\u043b\u044f \u043c\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 JDAPI \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u043e\u0448\u0435\u043b, \u043f\u043e \u0445\u043e\u0434\u0443 \u0434\u0435\u043b\u0430 \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0444\u043e\u0440\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440.<br \/>  \u0424\u043e\u0440\u043c \u0432 \u043d\u0435\u043c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e <a href=\"http:\/\/www.samtrest.com\/images\/form_explorer.gif\">\u0442\u0430\u043a<\/a>.<br \/>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441 Oracle Report \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u041d\u043e \u0432 Oracle, \u0442\u0430\u043a\u043e\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, forms \u0438 reports \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0434\u0432\u0435 \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0438\u0441\u0430\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0449\u0435 \u0438 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u043d\u0435 \u043b\u044e\u0431\u0438\u043b\u0438.<br \/>  \u041f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0434\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u041e\u0440\u0430\u043a\u043b API \u043d\u0435 \u0434\u0430\u043b. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c rdf \u0444\u0430\u0439\u043b \u0432 batch \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 XML \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<br \/>  rwconverter stype=rdffile source=&quot;+f.getAbsoluteFile()+ &quot; dtype=xmlfile dest=&quot;+xmlFileName+&quot; batch=yes<br \/>   \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u044d\u0442\u043e\u0442 XML \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 org.xml.sax, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/263675\/\"> http:\/\/habrahabr.ru\/post\/263675\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0414\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0444\u043e\u0440\u043c\u0430 \u043e\u0442 \u043e\u0431\u044c\u0435\u043a\u0442\u043e\u0432 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b Oracle Form(\u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u2014 fmb \u0444\u0430\u0439\u043b).<br \/>  Fmb \u2014 \u044d\u0442\u043e \u043f\u0441\u0435\u0432\u0434\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b, \u0435\u0441\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0443\u0436\u043d\u043e, PL\/SQL \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u044b \u0411\u0414 \u0442\u0430\u043c, \u043d\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0442\u0438\u043f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0444\u043e\u0440\u043c\u044b \u043e\u043d \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044e \u0432 FMT, \u043d\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0440\u0430\u0437\u0431\u043e\u0440 fmt \u0444\u0430\u0439\u043b\u0430 \u043b\u0435\u0433\u0447\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 API, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0435\u0442 \u041e\u0440\u0430\u043a\u043b.<br \/>  \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u0432\u0441\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 Java Swing, \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0439 \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c JDAPI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u043e\u0440\u043c \u043f\u043e \u043f\u043e\u043b\u043e\u0447\u043a\u0430\u043c \u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 PL\/SQL \u0438 properties, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-262385","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262385"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262385\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}