de.bea.domingo.proxy
Class BaseProxy.DocumentCollectionIterator

java.lang.Object
  extended by de.bea.domingo.monitor.AbstractMonitorEnabled
      extended by de.bea.domingo.proxy.BaseProxy
          extended by de.bea.domingo.proxy.BaseProxy.DocumentCollectionIterator
All Implemented Interfaces:
DBase, DNotesIterator, MonitorEnabled, java.io.Serializable, java.util.Iterator
Enclosing class:
BaseProxy

public static final class BaseProxy.DocumentCollectionIterator
extends BaseProxy
implements DNotesIterator

Iterator for collections of documents.

A Mapper instance is used to map Notes document into a business object. If no Mapper is provided, a simple default mapper is used that maps the Notes document into a simple data structure that implements the DDocument interface.

Author:
Kurt Riede
See Also:
DDocument, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.bea.domingo.proxy.BaseProxy
BaseProxy.DocumentCollectionIterator
 
Field Summary
 
Fields inherited from class de.bea.domingo.proxy.BaseProxy
DATETIME_STRING_LENGTH, EMPTY_STRING, MAX_DATETIME_LENGTH, NUM_DATETIME_VALUES, RESOURCES
 
Constructor Summary
protected BaseProxy.DocumentCollectionIterator(NotesProxyFactory theFactory, DBase theParent, lotus.domino.DocumentCollection theCollection, DNotesMonitor monitor)
          Constructor.
 
Method Summary
 int getSize()
          Returns the number of objects in the iterator.
 boolean hasNext()
          
 java.lang.Object next()
          
 void remove()
          The remove operation is not supported by this Iterator.
 java.lang.String toString()
          Returns a short description of an instance.
 
Methods inherited from class de.bea.domingo.proxy.BaseProxy
checkSession, clearNotesObject, convertCalendarsToNotesDateTime, convertListToVector, convertNotesDateTimesToCalendar, convertVectorToList, createCalendar, createDateRange, createDateTime, decrementDateTimeCounter, finalize, getCountDateTime, getDSession, getFactory, getNotesObject, getParent, incrementDateTimeCounter, newException, newException, newException, newRuntimeException, newRuntimeException, newRuntimeException, recycleDateTimeList, refereceHashCode, toStringGeneric, toStringIntern
 
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled
getMonitor, setMonitor
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.bea.domingo.DBase
equals, hashCode
 

Constructor Detail

BaseProxy.DocumentCollectionIterator

protected BaseProxy.DocumentCollectionIterator(NotesProxyFactory theFactory,
                                               DBase theParent,
                                               lotus.domino.DocumentCollection theCollection,
                                               DNotesMonitor monitor)
Constructor.

Parameters:
theFactory - the controlling factory
theParent - the parent database
monitor - the monitor
theCollection - the Notes document collection
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator
See Also:
Iterator.hasNext()

next

public java.lang.Object next()

Specified by:
next in interface java.util.Iterator
See Also:
Iterator.next()

remove

public void remove()
The remove operation is not supported by this Iterator. An UnsupportedOperationException is thrown if this method is called.

Specified by:
remove in interface java.util.Iterator
See Also:
Iterator.remove()

toString

public java.lang.String toString()
Returns a short description of an instance.

Specified by:
toString in interface DBase
Overrides:
toString in class java.lang.Object
Returns:
short description of an instance
See Also:
Object.toString()

getSize

public int getSize()
Returns the number of objects in the iterator.

Specified by:
getSize in interface DNotesIterator
Returns:
number of objects in the iterator
See Also:
DNotesIterator.getSize()


Domingo Java-API