Class QLSelectPrinter

java.lang.Object
org.apache.cayenne.ql.QLSelectPrinter

public class QLSelectPrinter extends Object
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