Re: SqlModifyQuery peformQuery()

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon May 10 2004 - 21:48:05 EDT

  • Next message: Andrus Adamchik: "Re: event handling"

    You are right, it is new. It is included in M6:
    http://objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/
    access/
    DataContext.html#performNonSelectingQuery(org.objectstyle.cayenne.query.
    Query)

    Andrus

    On May 10, 2004, at 11:17 AM, Eric Schneider wrote:
    > A,
    >
    > Which version has "performNonSelectingQuery()"? I'm not seeing it in
    > cayenne-1.1M4. It's on DataContext, right?
    >
    > Thanks,
    > e.
    >
    > ----- Original Message -----
    > From: "Andrus Adamchik" <andru..bjectstyle.org>
    > To: <cayenne-use..bjectstyle.org>
    > Sent: Friday, May 07, 2004 5:06 PM
    > Subject: Re: SqlModifyQuery peformQuery()
    >
    >
    >> Hey dude,
    >>
    >> SQLModifyQuery was deprecated in favor of SQLTemplate. Instead of
    >> "performQuery(...)" you can use shorter "performNonSelectingQuery"
    >> without
    >> the OperationObserver argument.
    >>
    >> Andrus
    >>
    >>> Andrus,
    >>>
    >>> I noticed upgrading one of my models to 1.1 that
    >>> performQuery(SqlModifyQuery query, DefaultOperationObserver
    >>> observer) is
    >>> deprecated. What is the appropriate alternative for this?
    >>>
    >>> Also, dataContext().invalidateObject(DataObject object) is
    >>> deprecated?
    >>> Use invalidateObjects(Collection list) instead?
    >>>
    >>> Thanks man.
    >>> e.
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon May 10 2004 - 21:47:59 EDT