|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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 FormField Summary | |
static int |
DEFAULT_VIEW_SIZE
|
protected static boolean |
VERBOSE
|
Constructor Summary | |
CatalogItemIterator(java.lang.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. |
java.lang.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 |
protected static final boolean VERBOSE
public static final int DEFAULT_VIEW_SIZE
Constructor Detail |
public CatalogItemIterator(java.lang.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 CatalogManager getCatalogManager() throws java.rmi.RemoteException
protected ProductItemManager getProductItemManager() throws java.rmi.RemoteException
ProductItemManger
protected CategoryManager getCategoryManager() throws java.rmi.RemoteException
CategoryManager
protected CatalogQueryManager getCatalogQueryManager() throws java.rmi.RemoteException
CatalogQueryManager
protected CustomDataManager getCustomDataManager() throws java.rmi.RemoteException
CustomDataManager
protected CatalogRequest getCatalogRequest()
CatalogRequest
protected abstract void refreshView(View view) throws java.rmi.RemoteException
view
- The view to refresh.protected abstract CatalogItem getCatalogItem(View view, int itemIndex) throws java.util.NoSuchElementException
view
- The current view.itemIndex
- The index of the item to retrieve.public final int size()
public final boolean hasNext()
true
if the iterator has more elements.
true
if the iterator has more elements.public java.lang.Object next() throws java.util.NoSuchElementException, java.rmi.RemoteException
public final int getViewCount()
public final View getCurrentView()
public final View getViewAt(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the desired view.public final boolean hasNextView()
true
if the iterator has a next view.
true
if the iterator has a next view.public final boolean hasPreviousView()
true
if the iterator has a previous view.
true
if the iterator has a previous view.public final void gotoNextView() throws NoSuchViewException
public final void gotoPreviousView() throws NoSuchViewException
public final void gotoViewAt(int index) throws NoSuchViewException
index
- The index of the desired view.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |