mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- This use case uses getPaths() instead of cycleCheck. This is due to the nature of the archive process, but will be changed once cycleCheck is made to happen faster. - Efficient child node cache invalidation git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
30 lines
1.0 KiB
XML
30 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="alfresco.node.select.children">
|
|
|
|
<select id="select_ChildAssocsOfParent_Limited" parameterType="ChildAssoc" resultMap="result_ChildAssoc">
|
|
<include refid="alfresco.node.select_ChildAssocsOfParent_Query"/>
|
|
<if test="ordered == true">
|
|
<include refid="alfresco.node.select_ChildAssoc_OrderBy"/>
|
|
</if>
|
|
</select>
|
|
|
|
<select id="select_ChildNodeIds_Limited" parameterType="ChildAssoc" resultMap="result_ChildAssocIds">
|
|
<![CDATA[
|
|
select
|
|
ca.id as id,
|
|
ca.child_node_id as child_node_id
|
|
from
|
|
alf_child_assoc ca
|
|
where
|
|
ca.parent_node_id = #{parentNode.id} and
|
|
ca.is_primary = #{isPrimary} and
|
|
ca.id >= #{id}
|
|
order by
|
|
ca.id
|
|
]]>
|
|
</select>
|
|
|
|
</mapper> |