wt.dataservice
Class ReservedWords

java.lang.Object
  extended bywt.dataservice.ReservedWords

public class ReservedWords
extends Object


Field Summary
private static HashMap javaMap
           
private static boolean ORACLE_RESERVED_ONLY
           
private static HashMap oracleMap
           
private static HashMap plSqlMap
           
private static boolean SQL_SERVER_RESERVED_ONLY
           
private static HashMap sqlMap
           
private static HashMap sqlServerMap
           
private static HashMap tSqlMap
           
 
Constructor Summary
ReservedWords()
           
 
Method Summary
static Map getMap()
           
static Map getOracleMap()
           
static Map getSqlServerMap()
           
static boolean isOracleReservedWord(String str)
          Determines if the specified word is an Oracle reserved word.
static boolean isReservedWord(String str)
          Determines if the specified word is a reserved word for the current datastore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ReservedWords

public ReservedWords()
Method Detail

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:

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:

Parameters:
str - the word to be tested.
Returns:
true if the word is considered a reserved word by Oracle; false otherwise.