Data Checks
This section tells you about the checks that are implemented in
the wizard.
Class definition
The checks on this page are the same as the one in the ordinary
class wizard.
Java Code Generation
Since different values are needed for the different ways of code
generation let us splitt the checks up:
Generating code with Java Emitter templates
Screenshot: As seen in the
walkthrough There are to ways for
generating code for a database table:
Through an input file. Here the following fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- DB product must be specified (NONE is not valid)
Through a database connection:
- Jet template may be provided as a valid file or a selection
from the drop down
- DB product must be specified (NONE is not valid)
- Information from page 3 are needed
If you choose to go with the option "Without DB" the following
fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
JETemplate with AST improvement
Screenshot: As seen in
the walkthrough There are
to ways for generating code for a database table:
Through an input file. Here the following fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IJETASTGenerator
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
- DB product must be specified (NONE is not valid)
Through a database connection:
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IJETASTGenerator
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
- DB product must be specified (NONE is not valid)
- Information from page 3 are needed
If you choose to go with the option "Without DB" the following
fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IJETASTGenerator
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
Generate JETemplate
Screenshot: As seen in
the walkthrough There are
to ways for generating code for a database table:
Through an input file. Here the following fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IJetCodeGenerator
- DB product must be specified (NONE is not valid)
Through a database connection:
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IJetCodeGenerator
- DB product must be specified (NONE is not valid)
- Information from page 3 are needed
If you choose to go with the option "Without DB" the following
fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IJetCodeGenerator
AST generation
Screenshot: As seen in
the walkthrough There are
to ways for generating code for a database table:
Through an input file. Here the following fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IASTGenerator
- Supply a generator class that implements the interface IPureASTGenerator
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
- DB product must be specified (NONE is not valid)
Through a database connection:
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IASTGenerator
- Supply a generator class that implements the interface IPureASTGenerator
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
- DB product must be specified (NONE is not valid)
- Information from page 3 are needed
If you choose to go with the option "Without DB" the following
fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IASTGenerator
- Supply a generator class that implements the interface IPureASTGenerator
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
JETemplate generation with AST improvement
Screenshot: As seen in
the walkthrough There are
to ways for generating code for a database table:
Through an input file. Here the following fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IASTGenerator
- Supply a generator class that implements the interface IASTGeneratorInizializer
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
- DB product must be specified (NONE is not valid)
Through a database connection:
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IASTGenerator
- Supply a generator class that implements the interface IASTGeneratorInizializer
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
- DB product must be specified (NONE is not valid)
- Information from page 3 are needed
If you choose to go with the option "Without DB" the following
fields are needed:
- Data Input must be a valid file.
- Jet template may be provided as a valid file or a selection
from the drop down
- Supply a generator class that implements the interface IASTGenerator
- Supply a generator class that implements the interface IASTGeneratorInizializer
- If the generator class implements the interface IReferenceImpleCaller
a reference implementation must be supplied.
- If a reference implementation is needed the class must
implement the interface IReferenceImplementation
Database access
- This wizard page is optional unless the database
model is generated through a database connection or the generator class
is needed and it implements the interface IDBAccess
- DB name may not be null or empty
- DB host may not be null or empty
- DB port may not be null or empty
- DB user may not be null or empty
- DB password may not be null or empty
- DB table may not be null or empty if the database
model is generated through a database connection
- DB schema may be null if and only if the database product does
not support the schema concept (e.g. MySQL)