|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.model.BasicModelGenerator
public abstract class BasicModelGenerator
This class provides functionality to generate a input data model based on the
IOutputFileModel.
| Constructor Summary | |
|---|---|
BasicModelGenerator()
|
|
| Method Summary | |
|---|---|
static IGeneratedObject |
createModelWithDBInputFile(java.lang.String typeName,
java.lang.String dbProduct,
java.lang.String inputFilePath,
IJavaProject project,
IProgressMonitor monitor)
Generates the model based on the class name and the inputFilePath Data in the wizard provided but not contained in the inputfilePath must be added to the model by the caller |
static IGeneratedObject |
createModelWithoutDB(java.lang.String typeName,
java.lang.String inputFilePath,
IProgressMonitor monitor)
Generates a model for the class that is not based on a database table |
IGeneratedObject |
initModel(IProgressMonitor monitor,
IOutputFileModel model,
IBasicDBDefinitionPage dbDefintionPage)
Create and initialize a model for the class to be generated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicModelGenerator()
| Method Detail |
|---|
public final IGeneratedObject initModel(IProgressMonitor monitor,
IOutputFileModel model,
IBasicDBDefinitionPage dbDefintionPage)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
monitor - Progress monitormodel - input model containing the pages datadbDefintionPage - current DB definition page
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static IGeneratedObject createModelWithDBInputFile(java.lang.String typeName,
java.lang.String dbProduct,
java.lang.String inputFilePath,
IJavaProject project,
IProgressMonitor monitor)
throws java.io.FileNotFoundException,
java.io.IOException
typeName - name of the classdbProduct - name of the database productinputFilePath - path to the input file the model is based uponproject - java project to generate the class inmonitor - Progress monitor
java.io.IOException - File could not be read
java.io.FileNotFoundException - File path incorrect
public static IGeneratedObject createModelWithoutDB(java.lang.String typeName,
java.lang.String inputFilePath,
IProgressMonitor monitor)
typeName - name of the classinputFilePath - path to the input file the model is based uponmonitor - Progress monitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||