Package org.apache.juneau.beanquery.sql
Class SqlStatement
java.lang.Object
org.apache.juneau.beanquery.sql.SqlStatement
A fully-rendered SQL statement: the text (with
? placeholders) plus its ordered bind values, and the
selected column names in SELECT order.
SqlBeanQueryContext renders these purely (no DataSource needed), so callers — and tests
— can inspect the generated SQL and binds before any execution.
- Since:
- 10.0.0
-
Method Summary
-
Method Details
-
sql
The SQL text, with a?placeholder for each bind value.- Returns:
- The SQL text.
-
binds
The bind values in placeholder order.- Returns:
- An unmodifiable list of bind values.
-
columns
The selected column names inSELECTorder (empty for aCOUNTstatement).- Returns:
- An unmodifiable list of column names.
-
toString
-