I assume you mean that you want to flush the cache from iBATIS DAOs.
Two things I can think of...
1. Write a do-nothing query, and add that query to the <flushOnExecute> settings of your cache declaration. Then execute the query in a dao method.
2. You could write a dao method to do this:
SqlMapClient client = (SqlMapClient) getSqlMapExecuter();
client.flushDataCache();
The second requires some knowledge of iBATIS internals, but it should work.
Jeff Butler
On 9/29/06, Tony Qian <[EMAIL PROTECTED]> wrote:
All,
I'm using Abator generated code for iBATIS. Does anyone know how to flush cache manually in a similar fashion as in sqlMapClient?
thanks,
Tony
