Menu

[r3155]: / trunk / ch.sahits.codegen.help / html / reference / extensions.html  Maximize  Restore  History

Download this file

61 lines (59 with data), 3.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!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>Extension Points</title>
</head>
<body>
<h1>Extension Points</h1>
<p>An overview of the implementations can be found with <a href="../samples/extensions.html">Samples</a> and <a href="../gettingstarted/feat_javacodegen.html#overview">Features</a>.</p>
<ul>
<li>ch.sahits.codegen.java.generator: This extension
point let's you supply your own generator classes (1..n) that are
needed when using the generation option. The classes must implement the
interface <a href="doc/ch/sahits/codegen/generator/IBaseGenerator.html">IBaseGenerator</a></li>
<li>ch.sahits.codegen.java.refimplementation: This extension point let's you
supply a reference class to copy code fragments from it. The extension point
supplies the class and the matching source file. The class must implement the
interface <a href="doc/ch/sahits/codegen/java/generator/ast/IReferenceImplementation.html">ch.sahits.codegen.java.generator.ast.IReferenceImplementation</a></li>
<li>ch.sahits.codegen.java.inputdbconnection: This
extension point let's you supply your own model generator classes
(1..n) for database tables through a db connection. The generator
classes must implement the interface <a
href="doc/ch/sahits/codegen/model/IDBConnectionModelGenerator.html">IDBConnectionModelGenerator</a>.
Besides the generator class you specify for which database product this
class can generate a model. This information is used in the DB product
drop-down list. The class supplies default values for the connection.</li>
<li>ch.sahits.codegen.java.inputdbparser: This
extension point let's you supply parsers (1..n) for an *.sql file for a
specific DB product. If for one database product more than one
implementation/extension exits only the first one found in the registry
is evaluated. The parser class must implement the interface <a
href="doc/ch/sahits/codegen/input/IDBInputParser.html">IDBInputParser</a>.
The class supplies default values for the connection.</li>
<li>ch.sahits.codegen.java.inputparser: This
extension point let's you define your own parser/model generator (1..n)
for an input file type. The file type is differentiated by the file
extension. If there are several extensions for one file extension the
first found will be applied. The parser must implement the interface <a
href="doc/ch/sahits/codegen/input/IInputParser.html">IInputParser</a></li>
<li>ch.sahits.codegen.java.jettemplate: This
extension point let you supply your own Java Emitter templates (1..n)
as an extension</li>
<li>ch.sahits.codegen.inputxmlparser: This extension
point let's you define 1..n XML parser classes that can parse an XML
input file. The classes must implement the interface <a
href="doc/ch/sahits/codegen/input/IXMLInputFileParser.html">IXMLInputFileParser</a></li>
<li>ch.sahits.codegen.java.connectionpage: This extension point offers you
the possibility to define your own ways to retrieve the database data. There must be specified
a class name that implements the basic wizard page class <a
href="doc/ch/sahits/codegen/wizards/BasicDBDefinitionPage.html">BasicDBDefinitionPage</a>.</li>
<li>ch.sahits.codegen.generator: This extension point let you define the means of generating an arbitrary
code fragment. The generation can be done through a JETemplate or a generator class. The generator class
must implement the interface <a href="doc/ch/sahits/codegen/generator/IGeneralGenerator.html">IGeneralGenerator</a>.</li>
<li>ch.sahits.codegen.sql.manipulation: This extension point provides you
with the possibility to define a manipulation class that changes the data that are
written into the insert script.</li>
</ul>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.