|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.wizards.DynamicDBGenerationCode
public final class DynamicDBGenerationCode
This class defines the ways the input data is retrieved. There are some ways that are implemented and other that can be added through extension points.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_DB_DEFINITION_PAGE_CLASS_NAME
Constant hold the name of the default database db definition page |
static int |
WITH_DB_INPUT_FILE
Generate a class with relation to a database table retrieved from the input file |
static int |
WITHOUT_DB
Generate a class without any relations to a database e.g. |
| Constructor Summary | |
|---|---|
DynamicDBGenerationCode()
Default constructor initializing the empty List |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String className)
Add a new value to the list |
int |
convert2Index(int constant)
Convert the model constant to the index in the list of the used extensions. |
java.lang.String |
getClassName(int index)
Retrieve the class name by the constant value |
int |
getValue(java.lang.String className)
Retrieve the value of the Generation code for a given class |
java.util.List<java.lang.Integer> |
values()
Retrieve all constant values for the generation Code |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WITHOUT_DB
public static final int WITH_DB_INPUT_FILE
public static final java.lang.String DEFAULT_DB_DEFINITION_PAGE_CLASS_NAME
| Constructor Detail |
|---|
public DynamicDBGenerationCode()
| Method Detail |
|---|
public void add(java.lang.String className)
className - name of the class from the extension point ch.sahits.codegen.java.connectionpagepublic int getValue(java.lang.String className)
className - name of the class from the extension point ch.sahits.codegen.java.connectionpage
public java.util.List<java.lang.Integer> values()
public java.lang.String getClassName(int index)
index - value of the constant
public int convert2Index(int constant)
constant - to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||