Re: CayenneContext bound to ThreadLocal?

From: Kevin Menard (nirvdru..mail.com)
Date: Thu Aug 14 2008 - 12:51:44 EDT

  • Next message: Lachlan Deck: "Re: Converting non-string and non-numeric expression parameters to EJBQL"

    That sounds like a reasonable approach to me. I'll open up a JIRA and try
    to look at it this weekend.

    -- 
    Kevin
    

    On Thu, Aug 14, 2008 at 2:35 AM, Andrus Adamchik <andru..bjectstyle.org>wrote:

    > It's never been implemented cause I couldn't figure out a good place to put > it. > > Now looking at the current Cayenne context structure, maybe instead of > ObjectContextUtils, we should use BaseContext class to store a static > ThreadLocal? And then deprecate corresponding DataContext methods, pointing > them to a superclass static var? > > Andrus > > > > On Aug 14, 2008, at 2:57 AM, Kevin Menard wrote: > >> Hi, >> Does anyone know why there's no utility method to bind a CayenneContext to >> ThreadLocal like there is for DataContext? Was it because it just wasn't >> needed or is there something funky to watch out for? If there's no good >> reason not to have it, does anyone object to me adding it or creating an >> ObjectContextUtils class for making it simple? >> >> -- >> Thanks, >> Kevin >> > >



    This archive was generated by hypermail 2.0.0 : Thu Aug 14 2008 - 12:52:33 EDT