|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.misc.ReservedWords
This class is the central repository for reserved words for known/tested
databases. By doublechecking against this list, you're pretty much in the
clear for making sure that your field names will work in various databases.
| Field Summary | |
protected TreeSet |
caseInsensitiveWords
The set of case insensitive reserved words. |
protected TreeSet |
caseSensitiveWords
The set of case insensitive reserved words. |
protected static ReservedWords |
theInstance
singleton instance. |
| Constructor Summary | |
protected |
ReservedWords()
|
| Method Summary | |
protected void |
buildCaseInsensitiveList()
|
protected void |
buildCaseSensitiveList()
|
static ReservedWords |
getInstance()
Singleton instance pattern. |
boolean |
isExpressoReservedWord(String testWord)
Returns whether or not a word that shouldn't be used in web page parameters should exists |
boolean |
isReservedWord(String testWord)
Returns whether a field or table name, can be used with a database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected TreeSet caseInsensitiveWords
protected TreeSet caseSensitiveWords
protected static volatile ReservedWords theInstance
| Constructor Detail |
protected ReservedWords()
| Method Detail |
public static ReservedWords getInstance()
public boolean isReservedWord(String testWord)
testWord - the word to test.
public boolean isExpressoReservedWord(String testWord)
protected void buildCaseSensitiveList()
protected void buildCaseInsensitiveList()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||