Mark D St John wrote:
I removed the finalize() methods in current CVS version and added a newJan Ypma wrote in his message that we should be careful to always close the QueryResults or OQLQuery when removing the two finalize methods. What should I do? Should I call the close() method on my QueryResults object, my OQLQuery object, or on both objects? I have some code where I was calling neither of these close() methods, and it appears to cause QueryResults to return old data when I re-run a query that I had run previously, which is inconsistent with the actual data in the database (I have cache-type set to none in my mapping.xml file, so this should never be the case). Does it make sense that this is happening? The example JDO code in Test.java included with version 0.9.3.9 does not call either of these close methods. Thanks again for your help.
Test Case.
If you close() the OQLQuery, it will close its QueryResults object.
You should not get old data when re-running the Query : there is a test
at the beginning of OQLQueryImpl.execute :
if (_results != null) {
_results.close();
}
If you still have problems with current Castor version, please send a
Test case to reproduce your problem.
--
Mickael Guessant
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
