Package org.jboss.cache

Examples of org.jboss.cache.Node.removeChild()


   public void testLazyLoadingOnNodeRemoveChild() throws Exception
   {
      cache.getTransactionManager().begin();
      Node node = cache.getRoot().getChild(parent);
      node.removeChild(child.getLastElement());
      assert !node.hasChild(child.getLastElement()) : "Node should have removed child";
      WorkspaceNode n = getWorkspaceNode(parent);
      assert !n.isChildrenLoaded() : "Should not have loaded children";
      cache.getTransactionManager().commit();
   }
View Full Code Here


   public void testLazyLoadingOnNodeRemoveChild() throws Exception
   {
      cache.getTransactionManager().begin();
      Node node = cache.getRoot().getChild(parent);
      node.removeChild(child.getLastElement());
      assert !node.hasChild(child.getLastElement()) : "Node should have removed child";
      WorkspaceNode n = getWorkspaceNode(parent);
      assert !n.isChildrenLoaded() : "Should not have loaded children";
      cache.getTransactionManager().commit();
   }
View Full Code Here

      if (node != null)
      {
         Set<Object> names = node.getChildrenNames();
         for (Object name : names)
         {
            node.removeChild(name);
         }
      }
   }
  
   protected abstract Logger getLog();
View Full Code Here

      if (node != null)
      {
         Set<Object> names = node.getChildrenNames();
         for (Object name : names)
         {
            node.removeChild(name);
         }
      }
   }

   protected Logger getLog()
View Full Code Here

   public void testLazyLoadingOnNodeRemoveChild() throws Exception
   {
      cache.getTransactionManager().begin();
      Node node = cache.getRoot().getChild(parent);
      node.removeChild(child.getLastElement());
      assert !node.hasChild(child.getLastElement()) : "Node should have removed child";
      WorkspaceNode n = getWorkspaceNode(parent);
      assert !n.isChildrenLoaded() : "Should not have loaded children";
      cache.getTransactionManager().commit();
   }
View Full Code Here

      {
      }

      try
      {
         root.removeChild(parent);
         fail("removeChild on destroyed cache did not throw ISE");
      }
      catch (IllegalStateException good)
      {
      }
View Full Code Here

      if (node != null)
      {
         Set<Object> names = node.getChildrenNames();
         for (Object name : names)
         {
            node.removeChild(name);
         }
      }
   }
  
   protected abstract Logger getLog();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.