Re: SelectQuery and getting where clause

From: Michael Gentry (blacknex..mail.com)
Date: Tue Oct 09 2007 - 09:48:20 EDT

  • Next message: Andrus Adamchik: "Re: SelectQuery and getting where clause"

    Will:

    Expression exp = sq.getQualifier();
    String clause = exp.toString();

    do what you are wanting?

    On 10/9/07, David Marko <dmark..iscali.cz> wrote:
    > Hello, I need to create a select query that have some parameters and I need to
    > get SQL where statement from it containing replaced parameters. (see snippet
    > below) . Is there any way how to accomplish this?
    >
    >
    > [Code snippet]
    > SelectQuery sq = new
    > SelectQuery(Role.class,Expression.fromString(this.whereClause));
    > return sq.queryWithParameters(params);
    >



    This archive was generated by hypermail 2.0.0 : Tue Oct 09 2007 - 09:48:52 EDT