An utility class for working with SQL keywords. Currently it provides
the list of reserved and non-reserved SQL-99 keywords.
author: Andrei Badea since: 1.2
isSQL99Keyword(String identifier) Returns true if the given identifier is a SQL-99 keyword (reserved or
non-reserved).
Parameters: identifier - the identifier to test; case does not matter; cannot be null.
public static boolean
isSQL99NonReservedKeyword(String identifier) Returns true if the given identifier is a SQL-99 non-reserved keyword.
Parameters: identifier - the identifier to test; case does not matter; cannot be null.
public static boolean
isSQL99ReservedKeyword(String identifier) Returns true if the given identifier is a SQL-99 reserved keyword.
Parameters: identifier - the identifier to test; case does not matter; cannot be null.
The list of SQL-99 reserved keywords. Not private because of the tests.
Method Detail
isSQL99Keyword
public static boolean isSQL99Keyword(String identifier)(Code)
Returns true if the given identifier is a SQL-99 keyword (reserved or
non-reserved).
Parameters: identifier - the identifier to test; case does not matter; cannot be null. true if identifier is a SQL-99 non-reserved keyword,false otherwise. throws: NullPointerException - if identifier is null.
isSQL99NonReservedKeyword
public static boolean isSQL99NonReservedKeyword(String identifier)(Code)
Returns true if the given identifier is a SQL-99 non-reserved keyword.
Parameters: identifier - the identifier to test; case does not matter; cannot be null. true if identifier is a SQL-99 non-reserved keyword,false otherwise. throws: NullPointerException - if identifier is null.
isSQL99ReservedKeyword
public static boolean isSQL99ReservedKeyword(String identifier)(Code)
Returns true if the given identifier is a SQL-99 reserved keyword.
Parameters: identifier - the identifier to test; case does not matter; cannot be null. true if identifier is a SQL-99 reserved keyword,false otherwise. throws: NullPointerException - if identifier is null.