ch.sahits.codegen.example.generator.ast
Class DAOGenerator
java.lang.Object
ch.sahits.codegen.generator.AbstractGenerator
ch.sahits.codegen.generator.JETGateway
ch.sahits.codegen.java.generator.jettemplate.AbstractJETTemplateGenerator
ch.sahits.codegen.java.generator.ast.AbstractJETASTGenerator
ch.sahits.codegen.example.generator.ast.DAOGenerator
- All Implemented Interfaces:
- IBaseGenerator, IDBAccess, IGenerator, IASTGenerator, IJETASTGenerator
public final class DAOGenerator
- extends AbstractJETASTGenerator
- implements IDBAccess, IJETASTGenerator, IBaseGenerator
This DAO Generator improves a DAO class generated through
a JET template (daoInsertUnique.javajet) by adding the needed
method getConnection which can only be created with the knowledge
of database access methods.
This class implements the marker interface IDBAccess because
database access information is needed to complete the code.
This class implements the marker interface IJETASTGenerator because
this generator is based upon a JETemplate with AST improvements.
- Since:
- 1.2.0
- Author:
- Andi Hotz
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAOGenerator
public DAOGenerator()
createJetGenerator
protected JETGateway createJetGenerator()
- Create a feasable JET Gegenrator
- Specified by:
createJetGenerator in class AbstractJETASTGenerator
- Returns:
JETGateway
generateASTCode
protected void generateASTCode()
- Generate the additional AST Code
- Specified by:
generateASTCode in class AbstractJETASTGenerator
setBaseClass
public void setBaseClass(java.lang.String baseClass)
- Set the class rump that is generated with JET
- Specified by:
setBaseClass in interface IASTGenerator- Specified by:
setBaseClass in class AbstractJETASTGenerator
- Parameters:
baseClass - the baseClass to set
setModel
public void setModel(IGeneratedJavaDBClass model)
- Set the model to be used
- Specified by:
setModel in interface IASTGenerator
- Parameters:
model - to be used