@Override
    public String toString() {
        if (queryString == null) {
            StringBuilder builder = new StringBuilder();
            for (Map.Entry<String, String> entry : values.entrySet()) {
                builder.append(entry.getKey()).append("=").append(entry.getValue());
                builder.append(";");
            }
            if (configuration.getUseLiterals() || forSession) {
                queryString = "set query_band='"
                        + configuration.getTemplates().escapeLiteral(builder.toString())
                        + (forSession ? "' for session" : "' for transaction");
                parameter = null;
            } else {
                queryString = "set query_band=? for transaction";
                parameter = builder.toString();
            }

        }
        return queryString;
    }
{@code SetQueryBandClause} provides support for Teradata specific set query_band executions.

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/teradata/SetQueryBandClause.java