public class Quoting extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isQuoted(String identifier)
Checks if an identifier is quoted.
|
String |
quote(String identifier)
Quotes an identifier.
|
String |
requote(String identifier)
Quotes an identifier only if it is already quoted (potentially with a different quoting-string).
|
void |
setIdentifierQuoteString(String identifierQuoteString)
Sets the identifierQuoteString
|
static String |
staticUnquote(String identifier)
Remove quotes from identifier.
|
String |
unquote(String identifier)
Remove quotes from identifier.
|
static String |
unquotedTableName(Table t,
ExecutionContext executionContext)
Gets unquoted qualified table name.
|
public Quoting(Session session) throws SQLException
session - the database sessionSQLExceptionpublic String quote(String identifier)
identifier - the identifierpublic boolean isQuoted(String identifier)
identifier - the identifiertrue if identifier is quotedpublic String unquote(String identifier)
identifier - the identifierpublic static String staticUnquote(String identifier)
identifier - the identifierpublic String requote(String identifier)
identifier - the identifierpublic static String unquotedTableName(Table t, ExecutionContext executionContext)
t - the tablepublic void setIdentifierQuoteString(String identifierQuoteString)
identifierQuoteString -