cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias SCHOESSLER <Tobias.Schoess...@unvienna.org>
Subject RE: Clear DataContext Cache
Date Wed, 26 Jul 2006 14:57:06 GMT
... yes oldschool, ... but they say - never change a runing system. : )


I call

      dataContext
.unregisterObjects(dataContext.getObjectStore().getObjects());

that helped.

thanks



                                                                           
             "Gentry, Michael                                              
             \(Contractor\)"                                               
             <michael_gentry@f                                          To 
             anniemae.com>             <cayenne-user@incubator.apache.org> 
                                                                        cc 
             Wednesday, 26                                                 
             July 2006 15:38                                       Subject 
                                       RE: Clear DataContext Cache         
                                                                           
             Please respond to                                             
             cayenne-user@incu                                             
             bator.apache.org                                              
                                                                           
                                                                           




Man, 1.1.3 is like ... so last week.  :-)

Would DC's unregisterObjects() or invalidateObjects() do what you want?
(I think those were available in 1.1.3.)

/dev/mrg


-----Original Message-----
From: Tobias SCHOESSLER [mailto:Tobias.Schoessler@unvienna.org]
Sent: Wednesday, July 26, 2006 7:39 AM
To: cayenne-user@incubator.apache.org
Subject: Clear DataContext Cache



Hello,

In cayenne 1.1.3 is it possible to clear the object cache of a
DataContext
manually?
I do not want to recreate the DataContext as it is being used in several
controllers that would otherwise need to be refreshed.

thanks.






Mime
View raw message