<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SQL Insert Script Generation Tutorial</title>
</head>
<body>
<h1>Java Code Generation - Guide</h1>
<p>The first page of the code generation wizard is like the class
generation wizard though with some options left out. Supply the
arguments as needed and proceed to the second page.</p>
<p>On second page you supply the information needed for the code
generation.</p>
<p><img src="../pic/wizardpage2.png"
alt="JET Template with AST improvement"
title="Java Godegen Wizard Page 2" /></p>
<p>Data Input: Herein comes the path to the input data. Currently
only a script for the creation of an Oracle table is supported.</p>
<p>Jet template: Here you supply either a custom JET template for
generation with JET or you select a template that comes with the plug-in.</p>
<p>Generator class: Here you supply a class that is used to do the
code generation. You may also select one of the supplied generator
classes</p>
<p>Reference implementation: Path to the Java source file that
contains a reference implementation. For information on the format of
the reference class see <a
href="/index.php?option=com_content&view=article&id=64:reference-implementation&catid=4:projekte&Itemid=8">Reference
Implementation</a>.</p>
<p>The following compinations are possible:</p>
<table border="0">
<tbody>
<tr>
<td></td>
<td>Template JET<br />
</td>
<td>Template JET+AST<br />
</td>
<td>Generation JET</td>
<td>Generation AST <br />
</td>
<td>Generation JET+AST<br />
</td>
</tr>
<tr>
<td>Description <br />
</td>
<td>Generate the code only with a supplied JET template<br />
</td>
<td>Generate the code the code with a JET template and improve
it with AST code generation<br />
</td>
<td>Generate a JET template and use it to generate the code<br />
</td>
<td>Generate the code with AST generation<br />
</td>
<td>Generate a JET template and use it to generate the code that
is then improved with AST code generation <br />
</td>
</tr>
<tr>
<td>DataInput<br />
</td>
<td align="center">X</td>
<td align="center">X <br />
</td>
<td align="center">X</td>
<td align="center">X <br />
</td>
<td align="center">X <br />
</td>
</tr>
<tr>
<td>JET template<br />
</td>
<td align="center">X</td>
<td align="center">X <br />
</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td>Generator Class<br />
</td>
<td align="center"></td>
<td align="center">X</td>
<td align="center">X <br />
</td>
<td align="center">X <br />
</td>
<td align="center">X <br />
</td>
</tr>
<tr>
<td>Reference Implementation*)<br />
</td>
<td align="center"></td>
<td align="center">X</td>
<td align="center"><br />
</td>
<td align="center">X <br />
</td>
<td align="center">X <br />
</td>
</tr>
</tbody>
</table>
<p>*) If a reference implementation is needed is decided by the
generator class.</p>
<p>DB product: Select the type of database you use, or none.</p>
<p>If you selected a database you can supply database specific data
on the third page:</p>
<ul>
<li>DB host</li>
<li>DB port</li>
<li>DB name</li>
<li>username</li>
<li>password</li>
<li>schema/owner</li>
</ul>
<p>For further tutorials on the different way please consult the <a
href="http://sahits.ch/project/javacodegen/features.html">project page</a>.</p>
</body>
</html>