More tweaks to child assoc queries: NodeDAO client code must opt for sorting of child assocs explicitly

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31332 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-10-19 00:26:18 +00:00
parent 605a45be5c
commit 7c576151bb
5 changed files with 240 additions and 131 deletions

View File

@@ -363,6 +363,12 @@ public class SOLRTrackingComponentImpl implements SOLRTrackingComponent
return false;
}
@Override
public boolean orderResults()
{
return false;
}
public boolean handle(
Pair<Long, ChildAssociationRef> childAssocPair,
Pair<Long, NodeRef> parentNodePair,
@@ -569,6 +575,12 @@ public class SOLRTrackingComponentImpl implements SOLRTrackingComponent
return false;
}
@Override
public boolean orderResults()
{
return false;
}
@Override
public boolean handle(Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair,
Pair<Long, NodeRef> childNodePair)
@@ -596,6 +608,12 @@ public class SOLRTrackingComponentImpl implements SOLRTrackingComponent
return false;
}
@Override
public boolean orderResults()
{
return false;
}
@Override
public boolean handle(Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair,
Pair<Long, NodeRef> childNodePair)
@@ -617,6 +635,18 @@ public class SOLRTrackingComponentImpl implements SOLRTrackingComponent
final List<ChildAssociationRef> parentAssocs = new ArrayList<ChildAssociationRef>(100);
nodeDAO.getParentAssocs(nodeId, null, null, null, new ChildAssocRefQueryCallback()
{
@Override
public boolean preLoadNodes()
{
return false;
}
@Override
public boolean orderResults()
{
return false;
}
@Override
public boolean handle(Pair<Long, ChildAssociationRef> childAssocPair,
Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair)
@@ -625,12 +655,6 @@ public class SOLRTrackingComponentImpl implements SOLRTrackingComponent
return true;
}
@Override
public boolean preLoadNodes()
{
return false;
}
@Override
public void done()
{