wt.dataservice
Class ReservedWords
java.lang.Object
wt.dataservice.ReservedWords
- public class ReservedWords
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORACLE_RESERVED_ONLY
private static final boolean ORACLE_RESERVED_ONLY
- See Also:
- Constant Field Values
SQL_SERVER_RESERVED_ONLY
private static final boolean SQL_SERVER_RESERVED_ONLY
- See Also:
- Constant Field Values
oracleMap
private static final HashMap oracleMap
sqlServerMap
private static final HashMap sqlServerMap
sqlMap
private static final HashMap sqlMap
plSqlMap
private static final HashMap plSqlMap
tSqlMap
private static final HashMap tSqlMap
javaMap
private static final HashMap javaMap
ReservedWords
public ReservedWords()
getOracleMap
public static Map getOracleMap()
getSqlServerMap
public static Map getSqlServerMap()
getMap
public static Map getMap()
isReservedWord
public static boolean isReservedWord(String str)
- Determines if the specified word is a reserved word for the current
datastore. Reserved words include:
- ANSI SQL reserved words
- Datastore specific SQL reserved words
- java reserved words (for when java methods can be db procedures)
- Parameters:
str
- the word to be tested.
- Returns:
- true if the word is considered a reserved word, otherwise false
isOracleReservedWord
public static boolean isOracleReservedWord(String str)
- Determines if the specified word is an Oracle
reserved word. Oracle reserved words include:
- ANSI SQL reserved words
- Oracle SQL extensions reserved words
- PL/SQL reserved words
- java reserved words (for when java methods can be db procedures)
- Parameters:
str
- the word to be tested.
- Returns:
- true if the word is considered a reserved word by Oracle;
false otherwise.