Class JcrRecursiveRemove


  • public class JcrRecursiveRemove
    extends java.lang.Object
    Recursive Node removal utility
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int removeRecursive​(Node n, int saveEveryHowManyNodes)
      Remove Node n and its children recursively, saving every N nodes as specified (to avoid growing the transient space too much)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_SAVE_EVERY_HOW_MANY

        public static final int DEFAULT_SAVE_EVERY_HOW_MANY
        See Also:
        Constant Field Values
    • Constructor Detail

      • JcrRecursiveRemove

        public JcrRecursiveRemove()
    • Method Detail

      • removeRecursive

        public int removeRecursive​(Node n,
                                   int saveEveryHowManyNodes)
                            throws RepositoryException
        Remove Node n and its children recursively, saving every N nodes as specified (to avoid growing the transient space too much)
        Parameters:
        n - node to delete
        saveEveryHowManyNodes - if < 1, DEFAULT_SAVE_EVERY_HOW_MANY is used
        Returns:
        number of nodes deleted
        Throws:
        RepositoryException - if some error occurs