[OS-JIRA] Created: (CAY-357) Ability to set optimistic locking on a per-query basis

From: jira-norepl..bjectstyle.org
Date: Mon Aug 29 2005 - 14:48:35 EDT

  • Next message: Gili: "Re: ant test fails"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-357

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-357
        Summary: Ability to set optimistic locking on a per-query basis
           Type: Improvement

         Status: Assigned
       Priority: Minor

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Gili Tzabari

        Created: Mon, 29 Aug 2005 2:47 PM
        Updated: Mon, 29 Aug 2005 2:47 PM

    Description:
    We should be able to override whether optimistic locking gets used or not on a per-query basis. Mike suggested it might be enough to override isUsingOptimisticLocking() but this value gets used in prepareQueries(); what happens in between prepareQueries() and commitChanges()?

    We should be able to:

    createQuery
    query.setOptimisticLocking(false);
    useQuery1
    query.setOptimisticLocking(true)
    useQuery2

    and optimistic locking is applied with different values at point useQuery1 and useQuery2.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Mon Aug 29 2005 - 14:48:36 EDT