Menu

[r1127]: / trunk / ch.sahits.codegen.help / html / samples / extensions.html  Maximize  Restore  History

Download this file

126 lines (115 with data), 6.3 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
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!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>This section shows where in the plug-in the extension points are
used to extend the functionality and thereby also function as a
reference.</p>
<ul>
<li>ch.sahits.codegen.java.generator: The classes <a href="../reference/doc/ch/sahits/codegen/java/generator/jettemplate/InitializableDbBeanGenerator.html">InitializableDbBeanGenerator</a>,
<a href="../reference/doc/ch/sahits/codegen/java/generator/ast/PureASTOracleDAOGenerator.html">PureASTOracleDAOGenerator</a>,
<a href="../reference/doc/ch/sahits/codegen/java/generator/ast/ASTBeanWithDelete.html">ASTBeanWithDelete</a>
and <a href="../reference/doc/ch/sahits/codegen/java/generator/ast/JETASTGenerator.html">JETASTGenerator</a>
are extensions. The sources can be viewed at <a href="http://codegenjava.svn.sourceforge.net/viewvc/codegenjava/">Sourceforge.net</a>.
The definition of the extension is as follows:<pre> &lt;extension point="ch.sahits.codegen.java.generator"&gt;
&lt;generator
class="ch.sahits.codegen.java.generator.jettemplate.InitializableDbBeanGenerator"&gt;
&lt;/generator&gt;
&lt;generator
class="ch.sahits.codegen.java.generator.ast.PureASTOracleDAOGenerator"&gt;
&lt;/generator&gt;
&lt;generator
class="ch.sahits.codegen.java.generator.ast.ASTBeanWithDelete"&gt;
&lt;/generator&gt;
&lt;generator
class="ch.sahits.codegen.java.generator.ast.JETASTGenerator"&gt;
&lt;/generator&gt;
&lt;/extension&gt;
</pre></li>
<li>ch.sahits.codegen.java.inputdbconnection: The
class <a href="../reference/doc/ch/sahits/codegen/java/input/db/MySQLConnectionModelGenerator.html">MySQLConnectionModelGenerator</a>
implements this extension point. The source code can be viewed at <a href="http://codegenjava.svn.sourceforge.net/viewvc/codegenjava/">Sourceforge.net</a>.
The definition of the extension is as follows:<pre> &lt;extension point="ch.sahits.codegen.java.inputdbconnection"&gt;
&lt;dbconnection
class="ch.sahits.codegen.java.input.db.MySQLConnectionModelGenerator"
dbproduct="MySQL"&gt;
&lt;/dbconnection&gt;
&lt;/extension&gt;
</pre></li>
<li>ch.sahits.codegen.java.inputdbparser: The class <a href="../reference/doc/ch/sahits/codegen/java/input/OracleSQLCreateScriptInputParser.html">OracleSQLCreateScriptInputParser</a>
is the extension. The source code can be reviewed at <a href="http://codegenjava.svn.sourceforge.net/viewvc/codegenjava/">Sourceforge.net</a>.
The definition of the extension is as follows: <pre> &lt;extension point="ch.sahits.codegen.java.inputdbparser"&gt;
&lt;dbproduct name="oracle"
parserClass="ch.sahits.codegen.java.input.OracleSQLCreateScriptInputParser"&gt;
&lt;/dbproduct&gt;
&lt;/extension&gt;
</pre></li>
<li>ch.sahits.codegen.java.inputparser: The class
<a href="../reference/doc/ch/sahits/codegen/java/gui/input/XHTMLModelParser.html">XHTMLModelParser</a>
implements this extension. The source can be viewed at <a href="http://codegenjava.svn.sourceforge.net/viewvc/codegenjava/">Sourceforge.net</a>.
The definition of the extension is as follows:<pre>
&lt;extension
point="ch.sahits.codegen.java.inputparser"&gt;
&lt;inputParser
class="ch.sahits.codegen.java.gui.input.XHTMLModelParser"&gt;
&lt;/inputParser&gt;
&lt;/extension&gt;
</pre>
</li>
<li>ch.sahits.codegen.java.jettemplate: The
dbbean.javajet Java Emitter template is realised through this extension
point. The definition of the extension is as follows:<pre> &lt;extension point="ch.sahits.codegen.java.jettemplate"&gt;
&lt;template location="jet_templates" name="dbbean.javajet"&gt;
&lt;/template&gt;
&lt;/extension&gt;
</pre></li>
<li>ch.sahits.codegen.inputxmlparser: The class
<a href="../reference/doc/ch/sahits/codegen/xml/XMLParserWithoutDB.html">XMLParserWithoutDB</a>
is an example implementation for an input XML file parser. Another example ist the class
<a href="../reference/doc/ch/sahits/codegen/java/input/XMLTableParser.html">XMLTableParser</a>
Before an XML parser can be defined
in an XML file it must be registered through this parser. The source can be viewed at <a href="http://codegenjava.svn.sourceforge.net/viewvc/codegenjava/">Sourceforge.net</a>.
The definition of the extension is as follows:<pre>
&lt;extension
point="ch.sahits.codegen.inputxmlparser"&gt;
&lt;xmlparser
class="ch.sahits.codegen.xml.XMLParserWithoutDB"&gt;
&lt;/xmlparser&gt;
&lt;/extension&gt;
</pre>
</li>
<li>ch.sahits.codegen.java.connectionpage: Define the way how the database connection
data are retrieved. There are two implemented extensions. The default implementation for
the connection data <a href="../reference/doc/ch/sahits/codegen/java/internal/wizards/DBDefinitionPage.html">DBDefinitionPage</a>
and the alternative through the datatools project
<a href="../reference/doc/ch/sahits/codegen/java/internal/wizards/DTPConnectionDefinitionPage.html">DTPConnectionDefinitionPage</a>.
The source can be viewed at <a href="http://codegenjava.svn.sourceforge.net/viewvc/codegenjava/">Sourceforge.net</a>.
The definition of the extension is as follows:<pre>
&lt;extension
point="ch.sahits.codegen.java.connectionpage"&gt;
&lt;dbDefinition
btnText="DB with connection"
btnTooltip="Create the class DB relations gathered from the connection"
className="ch.sahits.codegen.java.internal.wizards.DBDefinitionPage"
pageTitle="Java Code Generator"&gt;
&lt;/dbDefinition&gt;
&lt;/extension&gt;
</pre></li>
<li class="list">ch.sahits.codegen.sql.manipulation: You can define a manipulation class for
your data that is read from database A. The manipulation takes place before the insert script is
generated.
<pre> &lt;extension
point="ch.sahits.codegen.sql.manipulation"&gt;
&lt;manipulationClass
class="ch.sahits.codegen.example.CountryChanger"&gt;
&lt;/manipulationClass&gt;
&lt;/extension&gt;
</pre>
</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.