|
org.netbeans.modules.db/1 1.44.1 30 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.db.sql.support.SQLIdentifiers.Quoter
public abstract static class SQLIdentifiers.Quoter
This is a utility class that is used to quote identifiers.
Method Summary | |
---|---|
String |
getQuoteString()
|
abstract String |
quoteAlways(String identifier)
Quotes an SQL identifier, even if the quoteIfNeeded(java.lang.String) method
would not have quoted it. |
abstract String |
quoteIfNeeded(String identifier)
Quotes an SQL identifier if needed. |
String |
unquote(String identifier)
Unquotes an identifier if it is quoted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract String quoteIfNeeded(String identifier)
Anyone generating SQL that will be visible and/or editable by the user should use this method. This helps to avoid unecessary quoting, which affects the readability and clarity of the resulting SQL.
An identifier needs to be quoted if one of the following is true:
identifier
- a SQL identifier. Can not be null.
public abstract String quoteAlways(String identifier)
quoteIfNeeded(java.lang.String)
method
would not have quoted it.
identifier
- a SQL identifier. Can not be null.
public String unquote(String identifier)
identifier
- a SQL identifier. Can not be null.
public String getQuoteString()
|
org.netbeans.modules.db/1 1.44.1 30 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |