You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by st...@apache.org on 2004/05/30 23:45:00 UTC

cvs commit: jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state TransientItemStateManager.java

stefan      2004/05/30 14:45:00

  Modified:    proposals/jcrri/src/org/apache/slide/jcr/core/state
                        TransientItemStateManager.java
  Log:
  no message
  
  Revision  Changes    Path
  1.3       +0 -43     jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/TransientItemStateManager.java
  
  Index: TransientItemStateManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/TransientItemStateManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TransientItemStateManager.java	30 May 2004 21:40:40 -0000	1.2
  +++ TransientItemStateManager.java	30 May 2004 21:45:00 -0000	1.3
  @@ -109,49 +109,6 @@
   		    // recurse
   		    collectDescendantItemStatesInAttic(childId, descendents);
   		}
  -/*
  -		// try transient cache
  -		NodeState parent = (NodeState) retrieve(parentId);
  -		if (parent == null) {
  -		    // try attic
  -		    parent = (NodeState) attic.retrieve(parentId);
  -		    if (parent == null) {
  -			log.warn("inconsistent hierarchy state");
  -			return;
  -		    }
  -		}
  -		// check properties:
  -		// get removed property entries
  -		Iterator iter = parent.getRemovedPropertyEntries().iterator();
  -		while (iter.hasNext()) {
  -		    NodeState.PropertyEntry entry = (NodeState.PropertyEntry) iter.next();
  -		    PropertyId propId = new PropertyId(parent.getUUID(), entry.getName());
  -		    // check attic
  -		    if (attic.isCached(propId)) {
  -			// found on attic, add to descendents list
  -			descendents.add(attic.retrieve(propId));
  -		    }
  -		}
  -		// check child nodes
  -		ArrayList nodeEntries = new ArrayList();
  -		// collect existing child node entries
  -		nodeEntries.addAll(parent.getChildNodeEntries());
  -		// collect removed child node entries
  -		nodeEntries.addAll(parent.getRemovedChildNodeEntries());
  -
  -		iter = nodeEntries.iterator();
  -		while (iter.hasNext()) {
  -		    NodeState.ChildNodeEntry entry = (NodeState.ChildNodeEntry) iter.next();
  -		    NodeId nodeId = new NodeId(entry.getUUID());
  -		    // check attic
  -		    if (attic.isCached(nodeId)) {
  -			// found on attic, add to descendents list
  -			descendents.add(attic.retrieve(nodeId));
  -		    }
  -		    // recurse
  -		    collectDescendantItemStatesInAttic(nodeId, descendents);
  -		}
  -*/
   	    }
   	} catch (RepositoryException re) {
   	    log.warn("inconsistent hierarchy state", re);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org