You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by WhyDontYouSlide <wh...@gmail.com> on 2009/04/28 12:32:45 UTC
force flushOnExecute without real query
Hello,
I was asking myself if It's possible to force flushing of the cache without
execute a "real" statement
for example:
the traditinal way is to execute a query defined in "somequeryname"
<flushOnExecute statement="somequeryname"/>
but.. can I simply do nothing instead of calling a statement here?
<flushOnExecute statement="somequeryname"/>
<select id="somequeryname"
doing nothing here...
/>
doing this way I could for example be able to call the flush "on demand"
from a DTO outside
thx
whydontyouslide
--
View this message in context: http://www.nabble.com/force-flushOnExecute-without-real-query-tp23274367p23274367.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
Re: force flushOnExecute without real query
Posted by WhyDontYouSlide <wh...@gmail.com>.
great! just what I was looking for!
thank you!
regards
whydontyouslide
Nicholoz Koka Kiknadze wrote:
>
> To flush on demand you can just call
> SqlMapClient.flushDataCache(String cacheId).
>
> HTH
>
>
>
> On Tue, Apr 28, 2009 at 10:32 AM, WhyDontYouSlide
> <whydontyouslide@gmail.com
>> wrote:
>
>>
>> Hello,
>>
>> I was asking myself if It's possible to force flushing of the cache
>> without
>> execute a "real" statement
>>
>> for example:
>>
>> the traditinal way is to execute a query defined in "somequeryname"
>>
>> <flushOnExecute statement="somequeryname"/>
>>
>>
>> but.. can I simply do nothing instead of calling a statement here?
>>
>> <flushOnExecute statement="somequeryname"/>
>>
>> <select id="somequeryname"
>>
>> doing nothing here...
>>
>> />
>>
>> doing this way I could for example be able to call the flush "on demand"
>> from a DTO outside
>>
>> thx
>> whydontyouslide
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/force-flushOnExecute-without-real-query-tp23274367p23274367.html
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/force-flushOnExecute-without-real-query-tp23274367p23275898.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
Re: force flushOnExecute without real query
Posted by Nicholoz Koka Kiknadze <ki...@gmail.com>.
To flush on demand you can just call
SqlMapClient.flushDataCache(String cacheId).
HTH
On Tue, Apr 28, 2009 at 10:32 AM, WhyDontYouSlide <whydontyouslide@gmail.com
> wrote:
>
> Hello,
>
> I was asking myself if It's possible to force flushing of the cache without
> execute a "real" statement
>
> for example:
>
> the traditinal way is to execute a query defined in "somequeryname"
>
> <flushOnExecute statement="somequeryname"/>
>
>
> but.. can I simply do nothing instead of calling a statement here?
>
> <flushOnExecute statement="somequeryname"/>
>
> <select id="somequeryname"
>
> doing nothing here...
>
> />
>
> doing this way I could for example be able to call the flush "on demand"
> from a DTO outside
>
> thx
> whydontyouslide
>
>
>
> --
> View this message in context:
> http://www.nabble.com/force-flushOnExecute-without-real-query-tp23274367p23274367.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>