|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.Dictionary
public class Dictionary
Representation of a Dictionary to use in the generation of identifiers.
| Nested Class Summary | |
|---|---|
static class |
Dictionary.CaseIdentifier
Enumeration for possible cases for identifiers |
| Field Summary | |
|---|---|
static java.lang.String |
IDENTIFIER_CASE_PROPERTY
PMF property name for defining the identifier case. |
static java.lang.String |
IDENTIFIER_NAMING_STRATEGY_PROPERTY
PMF property name for defining the identifier naming strategy. |
static java.lang.String |
IDENTIFIER_TABLE_PREFIX_PROPERTY
PMF property name for defining the prefix for table identifiers. |
static java.lang.String |
IDENTIFIER_TABLE_SUFFIX_PROPERTY
PMF property name for defining the suffic for table identifiers. |
static java.lang.String |
IDENTIFIER_WORD_SEPARATOR_PROPERTY
PMF property name for defining the separator for words in the identifiers. |
| Constructor Summary | |
|---|---|
Dictionary()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Equality method. |
java.lang.String |
getDatastoreIdentifierForJavaName(java.lang.String javaName)
Generate a datastore identifier from a Java identifier. |
static Dictionary |
getDefaultDictionary()
Method to return a Dictionary using defaulted settings. |
Dictionary.CaseIdentifier |
getIdentifierCase()
Accessor for the case of the identifiers. |
java.lang.String |
getNamingStrategy()
Accessor for the naming strategy to use |
java.lang.String |
getTablePrefix()
Accessor for the prefix for table identifiers. |
java.lang.String |
getTableSuffix()
Accessor for the suffix for table identifiers. |
char |
getWordSeparator()
Accessor for the word separator for identifiers. |
void |
setIdentifierCase(Dictionary.CaseIdentifier caseIdentifier)
Mutator for the case of identifiers. |
void |
setNamingStrategy(java.lang.String namingStrategy)
Mutator for the naming strategy to use. |
void |
setTablePrefix(java.lang.String tablePrefix)
Mutator for the prefix for table identifiers |
void |
setTableSuffix(java.lang.String tableSuffix)
Mutator for the suffix for table identifiers |
void |
setWordSeparator(java.lang.String wordSeparator)
Mutator for the word separator identifiers |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IDENTIFIER_NAMING_STRATEGY_PROPERTY
public static final java.lang.String IDENTIFIER_CASE_PROPERTY
public static final java.lang.String IDENTIFIER_WORD_SEPARATOR_PROPERTY
public static final java.lang.String IDENTIFIER_TABLE_PREFIX_PROPERTY
public static final java.lang.String IDENTIFIER_TABLE_SUFFIX_PROPERTY
| Constructor Detail |
|---|
public Dictionary()
| Method Detail |
|---|
public static Dictionary getDefaultDictionary()
public Dictionary.CaseIdentifier getIdentifierCase()
public void setIdentifierCase(Dictionary.CaseIdentifier caseIdentifier)
caseIdentifier - The caseIdentifier to set.public java.lang.String getTablePrefix()
public void setTablePrefix(java.lang.String tablePrefix)
tablePrefix - The prefix for table identifierspublic java.lang.String getTableSuffix()
public void setTableSuffix(java.lang.String tableSuffix)
tableSuffix - The suffix for table identifierspublic char getWordSeparator()
public void setWordSeparator(java.lang.String wordSeparator)
wordSeparator - The word separator identifierspublic java.lang.String getNamingStrategy()
public void setNamingStrategy(java.lang.String namingStrategy)
namingStrategy - The strategy for namingpublic java.lang.String getDatastoreIdentifierForJavaName(java.lang.String javaName)
Conversion consists of breaking the identifier into words, converting each word to upper-case, and separating each one with an underscore "_". Words are identified by a leading upper-case character. Any leading or trailing underscores are removed.
javaName - the Java identifier.
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The object to compare against
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||