ch.sahits.codegen.wizards
Interface ICodeGeneratorDelegate

All Superinterfaces:
IInputObjectModel
All Known Subinterfaces:
ICodeGeneratorUIDelegate, IJavaCodeGeneratorDelegate, IJavaCodeGeneratorUIDelegate
All Known Implementing Classes:
MinimalArtifactDelegate

public interface ICodeGeneratorDelegate
extends IInputObjectModel

This interface defines the methods that are delegated to the concrete Wizard implementation of the BasicGeneralCodeGenerator

Since:
0.9.5
Author:
Andi Hotz

Method Summary
 int computeWorkload()
          Compute the workload for the model generation
 int getModelBase()
          Check out how the model data is gathered
 IGeneratedObject initModel(IProgressMonitor monitor, IBasicDBDefinitionPage dbDefinitionPage)
          Create and initialize a model for the class to be generated
 

Method Detail

computeWorkload

int computeWorkload()
Compute the workload for the model generation

Returns:
workload for the computation.

getModelBase

int getModelBase()
Check out how the model data is gathered

Returns:
Code for the model generation

initModel

IGeneratedObject initModel(IProgressMonitor monitor,
                           IBasicDBDefinitionPage dbDefinitionPage)
                           throws java.io.FileNotFoundException,
                                  java.io.IOException,
                                  java.lang.ClassNotFoundException
Create and initialize a model for the class to be generated

Parameters:
monitor - Progress monitor
dbDefinitionPage - current DB definition page
Returns:
class model
Throws:
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException