Class DefaultSQLAppendable
java.lang.Object
org.apache.cayenne.access.sqlbuilder.DefaultSQLAppendable
- All Implemented Interfaces:
SQLAppendable
- Since:
- 4.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(int c) appendQuoted(String str) Emits a token separator (a single space) ahead of the next SQL token.getSql()Suppresses the separator that the nextSQLAppendable.appendTokenSeparator()call would emit.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SQLAppendable
append
-
Constructor Details
-
DefaultSQLAppendable
-
-
Method Details
-
append
- Specified by:
appendin interfaceSQLAppendable
-
append
- Specified by:
appendin interfaceSQLAppendable
-
append
- Specified by:
appendin interfaceSQLAppendable
-
appendQuoted
- Specified by:
appendQuotedin interfaceSQLAppendable
-
appendTokenSeparator
Description copied from interface:SQLAppendableEmits a token separator (a single space) ahead of the next SQL token. SQL tree nodes call this instead of embedding a leading space in their literals, so inter-token spacing is owned by the appendable rather than scattered across nodes. The separator is skipped whenSQLAppendable.suppressNextTokenSeparator()was just called.- Specified by:
appendTokenSeparatorin interfaceSQLAppendable
-
suppressNextTokenSeparator
Description copied from interface:SQLAppendableSuppresses the separator that the nextSQLAppendable.appendTokenSeparator()call would emit. A node calls this right after opening a parenthesis so the group hugs its first token —(NAME)rather than( NAME).- Specified by:
suppressNextTokenSeparatorin interfaceSQLAppendable
-
getSql
- Specified by:
getSqlin interfaceSQLAppendable
-
toString
-