Class DefaultQuotingStrategy
java.lang.Object
org.apache.cayenne.dba.DefaultQuotingStrategy
- All Implemented Interfaces:
QuotingStrategy
An
QuotingStrategy that wraps identifiers in a pair of (possibly distinct) start/end quote characters.-
Field Summary
Fields inherited from interface QuotingStrategy
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendEnd(Appendable out) Appends the end-quote delimiter (e.g.voidappendStart(Appendable out) Appends the start-quote delimiter (e.g.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QuotingStrategy
appendFQN, quoted, quotedFQN
-
Constructor Details
-
DefaultQuotingStrategy
public DefaultQuotingStrategy(char startQuote, char endQuote)
-
-
Method Details
-
appendStart
Description copied from interface:QuotingStrategyAppends the start-quote delimiter (e.g.",[or`). A no-op when quoting is off.- Specified by:
appendStartin interfaceQuotingStrategy
-
appendEnd
Description copied from interface:QuotingStrategyAppends the end-quote delimiter (e.g.",]or`). A no-op when quoting is off.- Specified by:
appendEndin interfaceQuotingStrategy
-