org.apache.jackrabbit.rmi.client.iterator
Class ClientRowIterator

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.iterator.ClientIterator
          extended by org.apache.jackrabbit.rmi.client.iterator.ClientRowIterator
All Implemented Interfaces:
Iterator, RowIterator, RangeIterator

public class ClientRowIterator
extends ClientIterator
implements RowIterator

A ClientIterator for iterating remote rows.


Constructor Summary
ClientRowIterator(Session session, RemoteIterator iterator, LocalAdapterFactory factory)
          Creates a ClientRowIterator instance.
 
Method Summary
protected  Object getObject(Object remote)
          Creates and returns a local adapter for the given remote row.
 Row nextRow()
          Returns the next row in this iteration.
 
Methods inherited from class org.apache.jackrabbit.rmi.client.iterator.ClientIterator
getPosition, getSize, hasNext, next, remove, skip
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

ClientRowIterator

public ClientRowIterator(Session session,
                         RemoteIterator iterator,
                         LocalAdapterFactory factory)
Creates a ClientRowIterator instance.

Parameters:
iterator - remote iterator
factory - local adapter factory
Method Detail

getObject

protected Object getObject(Object remote)
Creates and returns a local adapter for the given remote row.

Specified by:
getObject in class ClientIterator
Parameters:
remote - remote reference
Returns:
local adapter
See Also:
ClientIterator.getObject(Object)

nextRow

public Row nextRow()
Returns the next row in this iteration.

Specified by:
nextRow in interface RowIterator
Returns:
next row
See Also:
RowIterator.nextRow()


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.