protected SQLBindings getSQL(SQLSerializer serializer) {
        List<Object> args = new ArrayList<>();
        Map<ParamExpression<?>, Object> params = getMetadata().getParams();
        for (Object o : serializer.getConstants()) {
            if (o instanceof ParamExpression) {
                if (!params.containsKey(o)) {
                    throw new ParamNotSetException((ParamExpression<?>) o);
                }
                o = queryMixin.getMetadata().getParams().get(o);
            }
            args.add(o);
        }
        return new SQLBindings(serializer.toString(), args);
    }
Get the query as an SQL query string and bindings

@return SQL string and bindings
querydsl-sql/src/main/java/com/querydsl/sql/ProjectableSQLQuery.java