You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Shane Mingins <sh...@assureinternational.com> on 2003/05/06 06:05:41 UTC

Clearing the Object Cache using the ODMG API

Hi 
 
Is there any way of clearing the Object Cache when using the ODMG API ?
 
And if so could someone provide a code example of doing so?
 
Thanks in advance
 
Shane
 
Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522
 

Re: Clearing the Object Cache using the ODMG API

Posted by Thomas Mahler <th...@web.de>.
Hi Shane,

Their is nothing in the ODMG API itself. But the trick is quite easy:

Transaction tx = ...

((HasBroker)tx).getBroker().clearCache();

cheers,
Thomas

Shane Mingins wrote:
> Hi 
>  
> Is there any way of clearing the Object Cache when using the ODMG API ?
>  
> And if so could someone provide a code example of doing so?
>  
> Thanks in advance
>  
> Shane
>  
> Shane Mingins
> Analyst Programmer
> Assure NZ Ltd
> Ph 644 494 2522
>  
>