|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beasys.commerce.ebusiness.catalog.CatalogItemIterator
The CatalogItemIterator is an abstract base class that all
catalog iterators must extend. This class should only be used by a
single thread.
View,
ViewIterator,
Serialized Form| Field Summary | |
static int |
DEFAULT_VIEW_SIZE
|
protected static boolean |
VERBOSE
|
| Constructor Summary | |
CatalogItemIterator(String managerJndiName,
CatalogRequest catalogRequest,
int numItems,
int viewSize)
CatalogItemIterator constructor that takes the total number
of spanned objects and a view size. |
|
| Method Summary | |
protected abstract CatalogItem |
getCatalogItem(View view,
int itemIndex)
Returns a CatalogItem within the current view. |
protected CatalogManager |
getCatalogManager()
|
protected CatalogQueryManager |
getCatalogQueryManager()
|
protected CatalogRequest |
getCatalogRequest()
|
protected CategoryManager |
getCategoryManager()
|
View |
getCurrentView()
Returns the current view. |
protected CustomDataManager |
getCustomDataManager()
|
protected ProductItemManager |
getProductItemManager()
|
View |
getViewAt(int index)
Gets the view at the specified index. |
int |
getViewCount()
Returns the number of views spanned by this iterator. |
void |
gotoNextView()
Moves the iterator to the next view. |
void |
gotoPreviousView()
Moves the iterator to the previous view. |
void |
gotoViewAt(int index)
Moves the iterator to the view at the specified index. |
boolean |
hasNext()
Returns true if the iterator has more elements. |
boolean |
hasNextView()
Returns true if the iterator has a next view. |
boolean |
hasPreviousView()
Returns true if the iterator has a previous view. |
Object |
next()
Returns the next element in the iteration. |
protected abstract void |
refreshView(View view)
This function is called whenever the current view needs to be refreshed. |
int |
size()
Returns the number of objects over which the iterator spans. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_VIEW_SIZE
protected static final boolean VERBOSE
| Constructor Detail |
public CatalogItemIterator(String managerJndiName,
CatalogRequest catalogRequest,
int numItems,
int viewSize)
CatalogItemIterator constructor that takes the total number
of spanned objects and a view size.
| Method Detail |
protected abstract CatalogItem getCatalogItem(View view,
int itemIndex)
throws NoSuchElementException
view - The current view.itemIndex - The index of the item to retrieve.
NoSuchElementException - If the item does not exist.
protected CatalogManager getCatalogManager()
throws RemoteException
RemoteException
protected CatalogQueryManager getCatalogQueryManager()
throws RemoteException
RemoteException - on remote error.CatalogQueryManagerprotected CatalogRequest getCatalogRequest()
RemoteException - on remote error.CatalogRequest
protected CategoryManager getCategoryManager()
throws RemoteException
RemoteException - on remote error.CategoryManagerpublic final View getCurrentView()
getCurrentView in interface ViewIterator
protected CustomDataManager getCustomDataManager()
throws RemoteException
RemoteException - on remote error.CustomDataManager
protected ProductItemManager getProductItemManager()
throws RemoteException
RemoteException - on remote error.ProductItemManager
public final View getViewAt(int index)
throws IndexOutOfBoundsException
getViewAt in interface ViewIteratorindex - The index of the desired view.
IndexOutOfBoundsException - if the index is invalid.public final int getViewCount()
getViewCount in interface ViewIterator
public final void gotoNextView()
throws NoSuchViewException
gotoNextView in interface ViewIteratorNoSuchViewException - if the iterator does not have a next view.
public final void gotoPreviousView()
throws NoSuchViewException
gotoPreviousView in interface ViewIteratorNoSuchViewException - if the iterator does not have a previous view.
public final void gotoViewAt(int index)
throws NoSuchViewException
gotoViewAt in interface ViewIteratorindex - The index of the desired view.
NoSuchViewException - if the index is invalid.public final boolean hasNext()
true if the iterator has more elements.
hasNext in interface ViewIteratortrue if the iterator has more elements.public final boolean hasNextView()
true if the iterator has a next view.
hasNextView in interface ViewIteratortrue if the iterator has a next view.public final boolean hasPreviousView()
true if the iterator has a previous view.
hasPreviousView in interface ViewIteratortrue if the iterator has a previous view.
public Object next()
throws NoSuchElementException,
RemoteException
next in interface ViewIteratorRemoteException - on remote error.
NoSuchElementException - if the iteration has no more elements.
protected abstract void refreshView(View view)
throws RemoteException
view - The view to refresh.
RemoteException - on remote error.public final int size()
size in interface ViewIterator
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||