public abstract static class DbmsSyntax.Implementation<A extends DbmsAdaptor<A>> extends Object implements DbmsSyntax<A>
DbmsSyntax.Implementation<A extends DbmsAdaptor<A>>
Modifier | Constructor and Description |
---|---|
protected |
Implementation(HashMap<String,Object> reservedWords,
HashMap<String,Object> nonReservedWords) |
Modifier and Type | Method and Description |
---|---|
static HashMap<String,Object> |
createKeywordSet(HashMap<String,Object> reservedWords,
HashMap<String,Object> nonReservedWords) |
boolean |
isKeyword(String s)
Checks case sensitive for performance reasons.
|
boolean |
isKeyword(String s,
boolean normalize) |
boolean |
isNonReservedWord(String s) |
boolean |
isNonReservedWord(String s,
boolean normalize) |
boolean |
isNormalizedKeyword(String s) |
boolean |
isNormalizedNonReservedWord(String s) |
boolean |
isNormalizedReservedWord(String s) |
boolean |
isReservedWord(String s) |
boolean |
isReservedWord(String s,
boolean normalize) |
Iterable<String> |
iterateKeywords() |
Iterable<String> |
iterateNonReservedWords() |
Iterable<String> |
iterateReservedWords() |
Iterator<String> |
iterator() |
static HashMap<String,Object> |
wordSet(String... words) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final HashMap<String,Object> wordSet(String... words)
words
- public static final HashMap<String,Object> createKeywordSet(HashMap<String,Object> reservedWords, HashMap<String,Object> nonReservedWords)
reservedWords
- nonReservedWords
- public boolean isKeyword(String s)
isKeyword(String, boolean)
for checking case insensitive.isKeyword
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- public boolean isKeyword(String s, boolean normalize)
isKeyword
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- normalize
- public boolean isNonReservedWord(String s)
isNonReservedWord
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- public boolean isNonReservedWord(String s, boolean normalize)
isNonReservedWord
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- normalize
- public boolean isReservedWord(String s)
isReservedWord
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- public boolean isReservedWord(String s, boolean normalize)
isReservedWord
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- normalize
- public boolean isNormalizedKeyword(String s)
isNormalizedKeyword
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- public boolean isNormalizedNonReservedWord(String s)
isNormalizedNonReservedWord
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- public boolean isNormalizedReservedWord(String s)
isNormalizedReservedWord
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
s
- public Iterable<String> iterateKeywords()
iterateKeywords
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
public Iterable<String> iterateNonReservedWords()
iterateNonReservedWords
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
public Iterable<String> iterateReservedWords()
iterateReservedWords
in interface DbmsSyntax<A extends DbmsAdaptor<A>>
Copyright © 2003–2021 XDEV Software. All rights reserved.