|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.metadata.Module
public class Module
A Module is a collection of type definitions,
table expressions and form declarations
which belong to one JAVA Package.
| Constructor Summary | |
|---|---|
Module(java.lang.String name,
java.lang.String javaPackage,
TypeDecl[] types,
TableExpr[] tableExprs,
Workflow[] workflows,
FormDecl[] forms,
CommandDecl[] commands)
Creates a new Module. |
|
| Method Summary | |
|---|---|
CommandDecl |
getCommand(int idx)
Returns the command declaration at index idx. |
Description |
getDescription()
|
boolean |
getForeignOwnership()
If true, then tables, views, and sequences of this
module are not owned by this application. |
FormDecl |
getForm(int idx)
Returns the form declaration at index idx. |
java.lang.String |
getJavaPackage()
Returns the JAVA package name for this module. |
java.lang.String |
getName()
Returns the name of this module. |
int |
getNumCommands()
Returns the number of known command declarations. |
int |
getNumForms()
Returns the number of known form declarations. |
int |
getNumTableExprs()
Returns the number of known table expressions. |
int |
getNumTypeDecls()
Returns the number of known module-global types. |
int |
getNumWorkflows()
Returns the number of known workflows. |
java.lang.String |
getSchemaPrefix()
Returns the schema prefix for table names from this module. |
TableExpr |
getTableExpr(int idx)
Returns the table expression at index idx. |
TableExpr |
getTableExpr(java.lang.String tableName)
Reutrns the table expression with the specified name. |
TypeDecl |
getTypeDecl(int idx)
Returns the module-global type at index idx. |
Workflow |
getWorkflow(int idx)
Returns the workflow at index idx. |
void |
setDescription(Description descr)
|
void |
setForeignOwnership(boolean foreignOwnership)
Set the schema prefix for table names from this module. |
void |
setSchemaPrefix(java.lang.String schemaPrefix)
Set the schema prefix for table names from this module. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Module(java.lang.String name,
java.lang.String javaPackage,
TypeDecl[] types,
TableExpr[] tableExprs,
Workflow[] workflows,
FormDecl[] forms,
CommandDecl[] commands)
| Method Detail |
|---|
public final java.lang.String getName()
public final java.lang.String getJavaPackage()
public final java.lang.String getSchemaPrefix()
null means to take the dictionary's prefix, the
empty string means no prefix, and any other string that qualified
names are build as prefix.name.
public void setSchemaPrefix(java.lang.String schemaPrefix)
public final boolean getForeignOwnership()
true, then tables, views, and sequences of this
module are not owned by this application. The corresponding SQL
statements to create and drop them are omitted from the DDL
files. Default for this attribute is false.
public void setForeignOwnership(boolean foreignOwnership)
public final Description getDescription()
public void setDescription(Description descr)
public final int getNumCommands()
public final int getNumForms()
public final int getNumTableExprs()
public final int getNumTypeDecls()
public final int getNumWorkflows()
public final CommandDecl getCommand(int idx)
idx.
java.lang.ArrayIndexOutOfBoundsException - when the index doesn't exists.public final FormDecl getForm(int idx)
idx.
java.lang.ArrayIndexOutOfBoundsException - when the index doesn't exists.public final TableExpr getTableExpr(int idx)
idx.
java.lang.ArrayIndexOutOfBoundsException - when the index doesn't exists.public final TableExpr getTableExpr(java.lang.String tableName)
public final TypeDecl getTypeDecl(int idx)
idx.
java.lang.ArrayIndexOutOfBoundsException - when the index doesn't exists.public final Workflow getWorkflow(int idx)
idx.
java.lang.ArrayIndexOutOfBoundsException - when the index doesn't exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||