[Cosmo-dev] Re: [commits-sandbox] [sandbox] (travis) [1119] PageCriteria now uses the enum UserSortType for its sort type variable.

Brian Moseley bcm at osafoundation.org
Wed Oct 11 05:44:41 PDT 2006


On 10/10/06, svncheckin at osafoundation.org <svncheckin at osafoundation.org> wrote:
>
>
>  Revision 1119 Author travis Date 2006-10-10 21:40:23 -0700 (Tue, 10 Oct
> 2006)
> Log Message
> PageCriteria now uses the enum UserSortType for its sort type variable.
>
> This makes paging and sorting more elegant, while allowing backwards
> compatibility with
> the current DAOs.

the problem with this approach is that it introduces a dependency on
the model package, which is not appropriate for a utility class.

you should instead provide a subclass of PageCriteria in the dao
package that uses this enum (moved into the same package, or even into
the PageCriteria subclass itself), or come up with some other
strategy.


More information about the cosmo-dev mailing list