The SQL editor needs to tell whether an identifier is a SQL keyword for the
purpose of syntax highligting. Currently it has a list of SQL keywords which is
private to the db/sqleditor module.
The j2ee/verifier module needs to warn about entity classes using SQL keywords
as identifiers. In order not to copy-paste the list of keywords an API must be
introduced which will be used by both the SQL editor and j2ee/verifier.
I would like to ask for a review of the proposed API. It introduces a
SQLKeywords class with methods for determining whether an identifier is a SQL-99
The API does not conceptually belong in the Database Explorer (the db module,
the only one in the database area providing a public API). Thus I propose it for
now is a friend API in the db/dbapi module.
The changes are in the db/dbapi and db/sqleditor modules on the branch
issue_77849. Tomasz, please use the API in j2ee/verification and post the diff here.