jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r696700 - /jackrabbit/trunk/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectIterator.java
Date Thu, 18 Sep 2008 16:41:21 GMT
Author: clombart
Date: Thu Sep 18 09:41:20 2008
New Revision: 696700

URL: http://svn.apache.org/viewvc?rev=696700&view=rev
Log:
Make ObjectIterator implement RangeIterator interface (see JCR-1740).

Modified:
    jackrabbit/trunk/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectIterator.java

Modified: jackrabbit/trunk/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectIterator.java?rev=696700&r1=696699&r2=696700&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectIterator.java
(original)
+++ jackrabbit/trunk/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectIterator.java
Thu Sep 18 09:41:20 2008
@@ -17,11 +17,11 @@
 
 package org.apache.jackrabbit.ocm.manager.impl;
 
-import java.util.Iterator;
 import java.util.NoSuchElementException;
 
 import javax.jcr.Node;
 import javax.jcr.NodeIterator;
+import javax.jcr.RangeIterator;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 
@@ -44,7 +44,7 @@
  * @author <a href="mailto:christophe.lombart@gmail.com">Christophe Lombart</a>
  *
  */
-public class ObjectIterator implements Iterator
+public class ObjectIterator implements RangeIterator
 {
 
     private static final Log log = LogFactory.getLog(ObjectIterator.class);
@@ -117,4 +117,16 @@
         // no more results
         nextResult = null;
     }
+
+    public void skip(long l) {
+        nodeIterator.skip(l);
+    }
+
+    public long getSize() {
+        return nodeIterator.getSize();
+    }
+
+    public long getPosition() {
+        return nodeIterator.getPosition();
+    }
 }



Mime
View raw message