Input Data
The input files define a model that conform to a specified
syntax/language. You can supply your own model by defining a domain
specific language (DSL). The following input files are supported. Further
can be added through extensions.
- SQL create script for Oracle: the file must end
on *.sql
- HTML forms conforming to the XHTML standard with the file extension *.xhtml
- XML files: the generator for the model must be
specified in the XML file. The generator parses the file and generates
a model object that is used in the generation of the java class
There are several extension points that concern the input data:
- ch.sahits.codegen.java.inputdbconnection: If your input data is not supplied by
an input file but a database connection, a proper model generator must be supplied
that can generate an input model from the connection.
- ch.sahits.codegen.java.inputdbparse: If your input data is an input SQL file a
parser must be supplied that can parse the input file since there are many differences
in the SQL dialect from different vendors.
- ch.sahits.codegen.java.inputparser: This extension point lets you define your
own parser based on a file extension.
- ch.sahits.codegen.inputxmlparser: If your input file is an XML file the specified
parser must be registered through this extension point.
- ch.sahits.codegen.java.connectionpage: The input data can be gained through querring the
database. There are different methods to do that. This extension point lets you supply your own.