|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.model.BasicModelFactoryHelper
ch.sahits.codegen.model.HeadlessBasicModelFactory
public final class HeadlessBasicModelFactory
This Model factory class is a factory for input data models for non Java code. This factory can be used without the UI
| Method Summary | |
|---|---|
static IDBTable |
createModelWithDBConnection(java.lang.String dbProduct,
java.lang.String host,
java.lang.String port,
java.lang.String dbName,
java.lang.String userName,
java.lang.String passWd,
java.lang.String tableName,
java.lang.String schema,
IProgressMonitor monitor)
Generates a model of a database table. |
static IDBTable |
createModelWithDBInputFile(java.lang.String dbProduct,
java.lang.String inputFilePath,
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 inputFilePath,
IProgressMonitor monitor)
Generates a model for the class that is not based on a database table |
static int |
getModelGenerationWorkload(int modelBase,
java.lang.String inputFilePath,
java.lang.String dbProduct)
Compute the number of work units for the generation of the file |
static void |
setCurrentDBDefinitionPage(IBasicDBDefinitionPageGeneratable secondPage)
|
| Methods inherited from class ch.sahits.codegen.model.BasicModelFactoryHelper |
|---|
convert, createModelFromExtension, createModelWithoutDBFromXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setCurrentDBDefinitionPage(IBasicDBDefinitionPageGeneratable secondPage)
secondPage - the page2 to set
public static IDBTable createModelWithDBConnection(java.lang.String dbProduct,
java.lang.String host,
java.lang.String port,
java.lang.String dbName,
java.lang.String userName,
java.lang.String passWd,
java.lang.String tableName,
java.lang.String schema,
IProgressMonitor monitor)
dbProduct - database producthost - name of the databaseport - number of the databasedbName - name of the databaseuserName - name of the database userpassWd - password for the usertableName - name of the database tablemonitor - Progress monitorschema - name
BasicDataBaseTable
public static IDBTable createModelWithDBInputFile(java.lang.String dbProduct,
java.lang.String inputFilePath,
IProgressMonitor monitor)
throws java.io.FileNotFoundException,
java.io.IOException
dbProduct - name of the database productinputFilePath - path to the input file the model is based uponmonitor - Progress monitor
java.io.IOException - File could not be read
java.io.FileNotFoundException - File path incorrect
public static IGeneratedObject createModelWithoutDB(java.lang.String inputFilePath,
IProgressMonitor monitor)
inputFilePath - path to the input file the model is based uponmonitor - Progress monitor
public static int getModelGenerationWorkload(int modelBase,
java.lang.String inputFilePath,
java.lang.String dbProduct)
inputFilePath - path to the input file the model is based uponmodelBase - code for the generationdbProduct - name of the database product my be null if the generation is not done with a database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||