Class QLSelectPrinter
java.lang.Object
org.apache.cayenne.ql.QLSelectPrinter
Prints a select query as a String that
QLParser can parse back, the opposite of QLSelectBuilder.
Used to print the nested selects of an expression and to store the queries mapped in a DataMap.
Just like the expressions that it consists of, a printed query may not be parseable if it contains values that have no String representation in the grammar (dates, persistent objects, etc.) Also there is no access to the mapping here, so a root defined as a Java class is printed as a simple name of that class, that is the name of the entity by convention, but doesn't have to be.
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(FluentSelect<?, ?> query, Appendable out) static Stringprint(FluentSelect<?, ?> query) Returns a query String thatObjectSelect.parse(String, Object...)can parse back into an equivalent query.
-
Constructor Details
-
QLSelectPrinter
public QLSelectPrinter()
-
-
Method Details
-
print
Returns a query String thatObjectSelect.parse(String, Object...)can parse back into an equivalent query. -
append
- Throws:
IOException
-