alfresco与数据交互的途径


alfresco对数据库的操作通过dataSource来完成。

dataSource是alfresco操作数据的唯一途径。

dataSource与Hibernate的sessionFactory对应,这里暂不考虑iBatis的使用。

那么与sessionFactory有关系的配置或者服务包括:
attributes-service-context.xml
authentication-services-context.xml
avm-services-context.xml  对应 AVMService  (Alfresco Versioning Model)
attributes-service-context.xml 对应 AttributeService
bootstrap-context.xml
hibernate-context.xml
node-services-context.xm 对应 NodeService,用户session管理
patch-services-context.xml
workflow-context.xml

 

略去非核心的应用,剩下2个关键的配置:

avm-services-context.xml  对应 AVMService  (Alfresco Versioning Model)
hibernate-context.xml 这个是最核心的数据操作部分.

 

hibernate-context.xml中和sessionFactory相关的bean
transactionManager
qnameDAO
versionCounterDaoComponent
aclDaoComponent
usageDeltaDAO
nodeDaoServiceImpl
localeDAOImpl
auditDao
contentUrlDAOImpl

hibernateSessionHelper
hibernateL1CacheBulkLoader

hibernateSessionHelper在nodeACLDAO和avmACLDAO中被引用
hibernateL1CacheBulkLoader在core-services-context.xml中的admLuceneIndexerAndSearcherFactory被引用,从这里可以看出lucene的index和数据库有关联


和Node相关的hibernate配置文件

org/alfresco/repo/domain/hibernate/Locale.hbm.xml
org/alfresco/repo/domain/hibernate/QName.hbm.xml
org/alfresco/repo/domain/hibernate/Node.hbm.xml
org/alfresco/repo/domain/hibernate/Transaction.hbm.xml
org/alfresco/repo/domain/hibernate/VersionCount.hbm.xml
org/alfresco/repo/domain/hibernate/AppliedPatch.hbm.xml
org/alfresco/repo/domain/hibernate/Permission.hbm.xml
org/alfresco/repo/avm/hibernate/AVM.hbm.xml
org/alfresco/repo/attributes/hibernate/Attributes.hbm.xml
org/alfresco/repo/domain/hibernate/UsageDelta.hbm.xml
org/alfresco/repo/activities/hibernate/Activities.hbm.xml

 

 

《2010-04-09 第三次修改》

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值