com.beasys.commerce.ebusiness.catalog
Interface ViewIterator

All Known Implementing Classes:
CatalogItemIterator, CategoryItemIterator, CategoryIterator, OrphanedItemIterator, ProductItemIterator, SearchItemIterator, SiblingIterator, SubCategoryIterator

Deprecated

@Deprecated
public interface ViewIterator

A ViewIterator is an iterator over large result sets that are broken into a series of Views.

See Also
View

Method Summary
 View getCurrentView()
          Deprecated Returns the current view.
 View getViewAt(int index)
          Deprecated Gets the view at the specified index.
 int getViewCount()
          Deprecated Returns the number of views spanned by this iterator.
 void gotoNextView()
          Deprecated Moves the iterator to the next view.
 void gotoPreviousView()
          Deprecated Moves the iterator to the previous view.
 void gotoViewAt(int index)
          Deprecated Moves the iterator to the view at the specified index.
 boolean hasNext()
          Deprecated Returns true if the iterator has more elements.
 boolean hasNextView()
          Deprecated Returns true if the iterator has a next view.
 boolean hasPreviousView()
          Deprecated Returns true if the iterator has a previous view.
 Object next()
          Deprecated Returns the next element in the iteration.
 int size()
          Deprecated Returns the number of objects over which the iterator spans.
 

Method Detail

size

int size()
Deprecated 
Returns the number of objects over which the iterator spans. This number is guaranteed to only be accurate at the time of iterator creation.

Returns
The number of spanned objects.

hasNext

boolean hasNext()
Deprecated 
Returns true if the iterator has more elements.

Returns
true if the iterator has more elements.

next

Object next()
            throws NoSuchElementException,
                   RemoteException
Deprecated 
Returns the next element in the iteration.

Returns
the next element in the iteration.
Throws
RemoteException - on remote error.
NoSuchElementException - if the iteration has no more elements.

getViewCount

int getViewCount()
Deprecated 
Returns the number of views spanned by this iterator.

Returns
the number of views spanned by this iterator.

getCurrentView

View getCurrentView()
Deprecated 
Returns the current view.

Returns
The current view.

getViewAt

View getViewAt(int index)
               throws IndexOutOfBoundsException
Deprecated 
Gets the view at the specified index.

Parameters
index - The index of the desired view.
Returns
The view at the specified index.
Throws
IndexOutOfBoundsException - if the index is invalid.

hasNextView

boolean hasNextView()
Deprecated 
Returns true if the iterator has a next view.

Returns
true if the iterator has a next view.

hasPreviousView

boolean hasPreviousView()
Deprecated 
Returns true if the iterator has a previous view.

Returns
true if the iterator has a previous view.

gotoNextView

void gotoNextView()
                  throws NoSuchViewException
Deprecated 
Moves the iterator to the next view.

Throws
NoSuchViewException - if the iterator does not have a next view.

gotoPreviousView

void gotoPreviousView()
                      throws NoSuchViewException
Deprecated 
Moves the iterator to the previous view.

Throws
NoSuchViewException - if the iterator does not have a previous view.

gotoViewAt

void gotoViewAt(int index)
                throws NoSuchViewException
Deprecated 
Moves the iterator to the view at the specified index.

Parameters
index - The index of the desired view.
Throws
NoSuchViewException - if the index is invalid.


Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.