Hi!
Yes; removeFromCache will remove the weak reference to the object and
make it eligble for garbage collection.
Jair da Silva Ferreira Júnior wrote:
transaction.begin();
Customer c=new Customer();
c.setName(customer);
transaction.lock(c,transaction.WRITE);
Hello,
Does anyone know how to refresh or reload an OJB cached object from the
database? Is there any API or method that can help me do this?
The situation is: I have an object in OJB cache, the object has been changed in
the database. How can I say to OJB to reload my object?
Thanks,
Jair da Silva Ferreira Júnior wrote:
Does anyone know how to refresh or reload an OJB cached object from the database?
If you are using the PersistenceBroker API, the method to use is:
broker.removeFromCache(object);
See
Hi,
Jair da Silva Ferreira Júnior wrote:
Hello,
Does anyone know how to refresh or reload an OJB cached object from the
database? Is there any API or method that can help me do this?
The situation is: I have an object in OJB cache, the object has been changed in
the database. How can
transaction.commit();
Thank you very much for your help.
Sincerely,
Jair Jr
- Original Message -
From: Martin Kalén [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 2:08 PM
Subject: Re: hot to reload cached object?
Jair da Silva Ferreira Júnior wrote