org.apache.jackrabbit.core.persistence
Interface IterablePersistenceManager

All Superinterfaces:
PersistenceManager
All Known Implementing Classes:
AbstractBundlePersistenceManager, BundleDbPersistenceManager, BundleFsPersistenceManager, DerbyPersistenceManager, H2PersistenceManager, MSSqlPersistenceManager, MySqlPersistenceManager, Oracle9PersistenceManager, OraclePersistenceManager, PostgreSQLPersistenceManager

public interface IterablePersistenceManager
extends PersistenceManager

The iterable persistence manager can return the list of node ids that are stored. Possible applications are backup, migration (copying a workspace or repository), and data store garbage collection.


Method Summary
 Iterable<NodeId> getAllNodeIds(NodeId after, int maxCount)
          Get all node ids.
 
Methods inherited from interface org.apache.jackrabbit.core.persistence.PersistenceManager
checkConsistency, close, createNew, createNew, exists, exists, existsReferencesTo, init, load, load, loadReferencesTo, store
 

Method Detail

getAllNodeIds

Iterable<NodeId> getAllNodeIds(NodeId after,
                               int maxCount)
                               throws ItemStateException,
                                      RepositoryException
Get all node ids. A typical application will call this method multiple times, where 'after' is the last row read. The maxCount parameter defines the maximum number of node ids returned, 0 meaning no limit. The order of the node ids is specific for the given persistent manager. Items that are added concurrently may not be included.

Parameters:
after - the lower limit, or null for no limit.
maxCount - the maximum number of node ids to return, or 0 for no limit.
Returns:
an iterator of all bundles.
Throws:
ItemStateException - if an error while loading occurs.
RepositoryException - if a repository exception occurs


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.