Skip to content

Commit 47639fc

Browse files
Add JaveDocs to QueryKnowledgeBase
1 parent 0a21462 commit 47639fc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/java/org/javawebstack/orm/test/shared/knowledge/QueryKnowledgeBase.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@
88
*/
99
public class QueryKnowledgeBase {
1010

11+
/**
12+
* Top level select keyword are SQL keywords which occur in SELECT statements and do not depend on another keyword
13+
* except for SELECT and FROM (which are both included in this set as well).
14+
* For example JOIN can appear after FROM statement so it is included. The ON keyword depends on a JOIN keyword though
15+
* which we view as a sub keyword of JOIN and therefore not as a top level keyword.
16+
*/
1117
public static final HashSet<String> TOP_LEVEL_SELECT_KEYWORDS;
18+
19+
/**
20+
* Quote characters are characters which prevents an SQL parser from picking up on a keyword, if the
21+
* wrap the keyword.
22+
*/
1223
public static final HashSet<Character> QUOTE_CHARACTERS;
1324

1425

0 commit comments

Comments
 (0)