Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #83 (closed)

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

Propagate Filter.isUnique() usage to all Queries.

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: 3.0-M2
Component: Queries Version: 3.0-M1
Keywords: iteration3, final Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Currently only StringQuery? (as of r661) uses the Filter.isUnique() value. All other Query subclasses should do the same.

This may need refactoring to take the control over this call out of their hands.

  • Add doCall(Criteria) and doCall(Query) methods.
  • Simple return the Criteria or Query from runQuery
  • ...

Change History (3)

comment:1 Changed 18 years ago by jmoore

  • Keywords iteration3 added

comment:2 Changed 18 years ago by jmoore

  • Keywords final added
  • Resolution set to fixed
  • Status changed from new to closed

Supported by r707. The solution chosen was to rename runQuery to buildQuery which must call either setCriteria or setQuery.

Also generally improved documentation, refactored some copy-n-paste actions, made some classes top-level (public) for testing, and lowered the visibility of some non-ome.* fields.

Didn't yet make the methods final, anyone have an opinion?

Closing.

comment:3 Changed 18 years ago by jmoore

r713 fixes a small mistake in Query where _criteria.list() was used twice rather than _criteria.uniqueResult().

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66391 sec.)

We're Hiring!