|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.metadata.PObjDictionary
public class PObjDictionary
A collection of Modules.
| Field Summary | |
|---|---|
static int |
NORMALIZE_CUT_OFF
Normalize name by cut-off at the maximum length. |
static int |
NORMALIZE_NO_VOWELS_40_60
Normalize name by removing vowels. |
| Constructor Summary | |
|---|---|
PObjDictionary(Module[] modules,
int normalizeName)
Creates a new dictionary. |
|
| Method Summary | |
|---|---|
java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader that can load all database classes. |
Module |
getModule(int idx)
Returns the Module at index idx. |
Module |
getModule(java.lang.String name)
Returns the Module with the specified name or null if such
does not exist. |
Module |
getModuleForPackage(java.lang.String packageName)
Returns the Module for the specified package name or null if
such does not exist. |
int |
getNormalizeName()
|
int |
getNumModules()
Returns the number of Modules in this collection. |
TableExpr |
getTableExpr(java.lang.Class<? extends Record> tableClass)
Returns the table expression for the given class or null if
such does not exist. |
TableExpr |
getTableExpr(java.lang.String tableName)
Returns the first found table expression for the given name or null if such does not exist. |
java.lang.String |
normalizeName(java.lang.String name,
int maxLength)
Normalize name for the target database. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NORMALIZE_CUT_OFF
public static final int NORMALIZE_NO_VOWELS_40_60
If the name has more than the maximum length characters, then strip all vowels from the 4th, 5th, etc. character of the original name. If the remaining length still exceeds the maximum length characters, then take the first 40% and last 60% off characters.
| Constructor Detail |
|---|
public PObjDictionary(Module[] modules,
int normalizeName)
The ClassLoader for the database classes is guessed to be the
same as the one for the PObjects library.
| Method Detail |
|---|
public final int getNumModules()
public final Module getModule(int idx)
idx.
public final Module getModule(java.lang.String name)
null if such
does not exist.
public final Module getModuleForPackage(java.lang.String packageName)
null if
such does not exist.
public final int getNormalizeName()
public java.lang.String normalizeName(java.lang.String name,
int maxLength)
public final TableExpr getTableExpr(java.lang.String tableName)
null if such does not exist.
Module.getTableExpr(String)public final TableExpr getTableExpr(java.lang.Class<? extends Record> tableClass)
null if
such does not exist.
getModuleForPackage(String),
Module.getTableExpr(String)public final java.lang.ClassLoader getClassLoader()
ClassLoader that can load all database classes.
public void setClassLoader(java.lang.ClassLoader classLoader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||