org.alfresco.repo.node
Interface NodeBulkLoader

All Known Subinterfaces:
NodeDAO
All Known Implementing Classes:
AbstractNodeDAOImpl, NodeDAOImpl, NodeDAOImpl.MSSQL

public interface NodeBulkLoader

A component that pre-fetches cached data for the given nodes. Client code can use this component when a list of NodeRef instances will be processed in a data-intensive manner.


Method Summary
 void cacheNodes(java.util.List nodeRefs)
          Pre-cache data relevant to the given nodes.
 void cacheNodesById(java.util.List nodeIds)
          Pre-cache data relevant to the given nodes.
 void clear()
          FOR TESTING ONLY: Clears out node cache data
 

Method Detail

cacheNodes

void cacheNodes(java.util.List nodeRefs)
Pre-cache data relevant to the given nodes. There is no need to split the collection up before calling this method; it is up to the implementations to ensure that batching is done where necessary.

Parameters:
nodeRefs - the nodes that will be cached.

cacheNodesById

void cacheNodesById(java.util.List nodeIds)
Pre-cache data relevant to the given nodes. There is no need to split the collection up before calling this method; it is up to the implementations to ensure that batching is done where necessary.

Parameters:
nodeIds - the nodes that will be cached.

clear

void clear()
FOR TESTING ONLY: Clears out node cache data



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.