|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NameGenerator
The generic interface to a name generation algorithm.
| Field Summary | |
|---|---|
static String |
CONV_METHOD_JAVANAME
Similar to CONV_METHOD_UNDERSCORE except nothing is
converted to lowercase. |
static String |
CONV_METHOD_NOCHANGE
Specifies no modification when converting from a schema column or table name to a java name. |
static String |
CONV_METHOD_UNDERSCORE
Traditional method for converting schema table and column names to java names. |
static String |
CONV_METHOD_UNDERSCORE_OMIT_SCHEMA
Similar to CONV_METHOD_UNDERSCORE except a possible
schema name (preceding a dot (.) )is omitted |
static char |
SCHEMA_SEPARATOR_CHAR
The character which separates the schema name from the table name |
static char |
STD_SEPARATOR_CHAR
The character used by most implementations as the separator between name elements. |
| Method Summary | |
|---|---|
String |
generateName(List inputs)
Given a list of String objects, implements an
algorithm which produces a name. |
| Field Detail |
|---|
static final char STD_SEPARATOR_CHAR
static final char SCHEMA_SEPARATOR_CHAR
static final String CONV_METHOD_UNDERSCORE
CONV_METHOD_XXX constants
define how names for columns and tables in the database schema
will be converted to java source names.
JavaNameGenerator.underscoreMethod(String),
Constant Field Valuesstatic final String CONV_METHOD_UNDERSCORE_OMIT_SCHEMA
CONV_METHOD_UNDERSCORE except a possible
schema name (preceding a dot (.) )is omitted
JavaNameGenerator.underscoreOmitSchemaMethod(String),
Constant Field Valuesstatic final String CONV_METHOD_JAVANAME
CONV_METHOD_UNDERSCORE except nothing is
converted to lowercase.
JavaNameGenerator.javanameMethod(String),
Constant Field Valuesstatic final String CONV_METHOD_NOCHANGE
| Method Detail |
|---|
String generateName(List inputs)
throws EngineException
String objects, implements an
algorithm which produces a name.
inputs - Inputs used to generate a name.
EngineException - if the name could not be generated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||