UpdateQuery

From: amando.net..aixaseguros.com.br
Date: Mon Jul 28 2003 - 13:12:00 EDT

  • Next message: Laszlo Spoor: "Re: UpdateQuery"

    ----- Repassado por Amando dos Santos Neto/MATRIZ/SASSE em 07/28/2003
    02:14 PM -----

    Amando dos Santos Neto
    07/28/2003 02:08 PM

     
            Para: cayenne-use..bjectstyle.org
            cc:
            Assunto: UpdateQuery

    ----- Repassado por Amando dos Santos Neto/MATRIZ/SASSE em 07/28/2003
    02:10 PM -----

    Amando dos Santos Neto
    07/28/2003 02:05 PM

     
            Para: cayenne-use..bjectstyle.org
            cc:
            Assunto: UpdateQuery

    Hello.

    I am trying to execute an update using the UpdateQuery, but nothing
    happens.
    No errors messages are throwing and the data is not updated.

    Here is my code.
    Expression exp = ExpressionFactory.binaryDbPathExp(
     Expression.EQUAL_TO,
                                                            "login",
                                                            login
                                                     );
     
                    UpdateQuery upDate = new UpdateQuery(TblUsuario.class,exp);
                    upDate.addUpdAttribute("login", "paulo");
                    upDate.setLoggingLevel( Level.WARN );
                    ctxt.commitChanges(Level.FATAL);

    Is there anyone that could help me out how to execute an update?

    Thanks,
    Amando



    This archive was generated by hypermail 2.0.0 : Mon Jul 28 2003 - 13:08:43 EDT