OJB提供缓存接口ObjectCache
在ORM映射中配置如下:
<class-descriptor
class="org.apache.ojb.broker.util.sequence.HighLowSequence"
table="OJB_HL_SEQ"
>
<object-cache class="org.apache.ojb.broker.cache.ObjectCacheDefaultImpl">
</object-cache>
...
</class-descriptor>
OJB二级缓存
ObjectCacheTwoLevelImpl
ObjectCacheTwoLevelImpl is a two level ObjectCache implementation with a transactional session- and a shared application-cache part.
<object-cache class="org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl">
<!-- meaning of attributes, please see docs section "Caching" -->
<!-- common attributes -->
<attribute attribute-name="cacheExcludes" attribute-value=""/>
<!-- ObjectCacheTwoLevelImpl attributes -->
<attribute attribute-name="applicationCache"
attribute-value="org.apache.ojb.broker.cache.ObjectCacheDefaultImpl"/>
<attribute attribute-name="copyStrategy"
attribute-value="org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl$CopyStrategyImpl"/>
<attribute attribute-name="forceProxies" attribute-value="true"/>
<!-- ObjectCacheDefaultImpl attributes -->
<attribute attribute-name="timeout" attribute-value="900"/>
<attribute attribute-name="autoSync" attribute-value="true"/>
<attribute attribute-name="cachingKeyType" attribute-value="0"/>
<attribute attribute-name="useSoftReferences" attribute-value="true"/>
</object-cache>
分享到:
相关推荐
db-ojb-1.0.4.jar....
OJB 持久层框架的帮助文档资料希望能为研究持久层框架的初学者提供一些帮助.
db-ojb-1.0.rc5(java+struts)
学习、介绍ojb的小资料
A Jar file that uses JTable as a FlexGrid
相对于Hibernate和Apache OJB等“一站式”ORM解决方案而言,ibatis是一种“半自动化”的ORM实现
jar包,官方版本,自测可用
jar包,官方版本,自测可用
jar包,官方版本,自测可用
jar包,官方版本,自测可用
jar包,官方版本,自测可用
jar包,官方版本,自测可用
ojb-1.0.4 这是OJB 1.0.4的修补程序版本,因为Apache ObJectRelationalBridge于2011年停用。为继续支持仍依赖OJB的Kuali应用程序,需要进行一些错误修复。 自官方OJB 1.0.4发行以来,KUALI-README.txt包含了所应用...
这是OJB 1.0.4的修补程序版本。 发生更改的文件是: src / java / org / apache / ojb / broker / platforms / PlatformOracle9iImpl.java src / java / org / apache / ojb / broker / util / IdentityArrayList....
OJB控制台是可扩展的struts Web应用程序,具有针对对象关系桥(OJB)持久性框架中配置的对象的透明浏览,搜索,创建,更新和删除功能。
jar包,官方版本,自测可用
实用程序将OJB repository.xml转换为Hibernate映射文件。 目的是允许基于OJB的项目快速转换为Hibernate。 还支持XDoclet标记生成。
OJB 一个Java初学者
Ojb / Struts GUI生成Java文件和数据库条目。 它还可以更新Java源文件,而无需覆盖现有代码和更改数据库表。