`

ibatis 缓存 cacheModel

阅读更多
	<cacheModel type="LRU" id="dicCache" readOnly="true" serialize="false" > 
		<flushInterval hours="24"/> 
		<flushOnExecute statement="DictionaryDao.insertDIC"/>
		<flushOnExecute statement="DictionaryDao.updateDIC"/> 
		<flushOnExecute statement="DictionaryDao.deleteDIC"/> 
		<property name="size" value="1000" /> 
	</cacheModel> 

 

<select id="queryDICsByFilter"  parameterClass="java.util.Map" resultClass="dic" cacheModel="dicCache">
  select * from bap_datadic 
     <dynamic prepend="where">
      <isPropertyAvailable property="dataid">
       <isNotNull prepend="AND" property="dataid">
        dataid=#dataid#
    </isNotNull>
   </isPropertyAvailable>
  </dynamic>

 </select> 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics