com.arsdigita.domain
Class DomainCollectionIterator

java.lang.Object
  extended bycom.arsdigita.domain.DomainCollectionIterator
All Implemented Interfaces:
Iterator

public class DomainCollectionIterator
extends Object
implements Iterator

Wraps a DomainCollection as an Iterator NOTE: This iterator reads an entire DomainCollection into memory and stores in an internal container. Asside from being inefficient & preventing the use of filters, this can potentially cause data aliasing problems in pre 5.3 core. Should only be used for passing to systems that don't directly support DomainCollections.

Version:
$Id: //core-platform/dev/src/com/arsdigita/domain/DomainCollectionIterator.java#9 $
Author:
Stanislav Freidin

Constructor Summary
DomainCollectionIterator(DomainCollection c)
          Wrap the specified DomainCollection in an iterator
 
Method Summary
 boolean hasNext()
          Return true if there are more rows in the collection, false otherwise
 Object next()
          Return the current domain object
 void remove()
          Not Implemented
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainCollectionIterator

public DomainCollectionIterator(DomainCollection c)
Wrap the specified DomainCollection in an iterator

Method Detail

hasNext

public boolean hasNext()
Return true if there are more rows in the collection, false otherwise

Specified by:
hasNext in interface Iterator

next

public Object next()
Return the current domain object

Specified by:
next in interface Iterator

remove

public void remove()
Not Implemented

Specified by:
remove in interface Iterator


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC