Interface QuotingStrategy
- All Known Implementing Classes:
DefaultQuotingStrategy
public interface QuotingStrategy
Encapsulates a database-specific SQL identifier quoting style (the start and end quote characters).
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QuotingStrategyA shared no-quote instance that appends identifiers verbatim. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendEnd(Appendable out) Appends the end-quote delimiter (e.g.default voidappendFQN(Appendable out, String... parts) Appends a fully-qualified name, joining non-empty parts with'.'and wrapping each part in start/end quotes.voidappendStart(Appendable out) Appends the start-quote delimiter (e.g.default StringReturns a single quoted identifier.default StringReturns a quoted fully-qualified name, joining non-empty parts with'.'and wrapping each part in start/end quotes.
-
Field Details
-
NONE
A shared no-quote instance that appends identifiers verbatim. Used wherever SQL identifier quoting is disabled.
-
-
Method Details
-
appendStart
Appends the start-quote delimiter (e.g.",[or`). A no-op when quoting is off.- Since:
- 5.0
-
appendEnd
Appends the end-quote delimiter (e.g.",]or`). A no-op when quoting is off.- Since:
- 5.0
-
appendFQN
Appends a fully-qualified name, joining non-empty parts with'.'and wrapping each part in start/end quotes.nulland empty parts are skipped (e.g. an absent catalog reported as an empty string by JDBC metadata).- Since:
- 5.0
-
quoted
-
quotedFQN
-