public final class Identifiers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Identifiers.Builder |
Modifier and Type | Method and Description |
---|---|
String |
getIdentifierQuoteString()
Gets the string used to quote database object identifiers, as
provided by the database server, or as overridden by the caller.
|
Collection<String> |
getReservedWords()
Get a list of reserved words, normalized to uppercase.
|
static Identifiers.Builder |
identifiers() |
boolean |
isQuotedName(String name)
Checks if an identifier name is quoted using the identifier quote
character.
|
boolean |
isReservedWord(String word)
Checks if a given word is a reserved word.
|
boolean |
isToBeQuoted(String name)
Checks if a given identifier name needs to be quoted.
|
String |
quotedName(String name)
Quotes an identifier name using the identifier quote string.
|
String |
unquotedName(String name)
Remove quotes from an identifier name using the identifier quote
string.
|
public static Identifiers.Builder identifiers()
public String getIdentifierQuoteString()
public Collection<String> getReservedWords()
public boolean isQuotedName(String name)
name
- Identifier name to checkpublic boolean isReservedWord(String word)
word
- Word to checkpublic boolean isToBeQuoted(String name)
name
- Identifier name to checkpublic String quotedName(String name)
name
- Identifier name to quotepublic String unquotedName(String name)
name
- Identifier name to remove quotes fromCopyright © 2000-2015 Sualeh Fatehi. All rights reserved.