|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.beasys.commerce.ebusiness.catalog.CatalogItemIterator
@Deprecated public abstract class 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
Deprecated |
protected static boolean |
VERBOSE
Deprecated |
Constructor Summary | |
---|---|
CatalogItemIterator(String managerJndiName,
CatalogRequest catalogRequest,
int numItems,
int viewSize)
Deprecated CatalogItemIterator constructor that takes the total number
of spanned objects and a view size. |
Method Summary | |
---|---|
protected abstract CatalogItem |
getCatalogItem(View view,
int itemIndex)
Deprecated Returns a CatalogItem within the current view. |
protected CatalogManager |
getCatalogManager()
Deprecated |
protected CatalogQueryManager |
getCatalogQueryManager()
Deprecated |
protected CatalogRequest |
getCatalogRequest()
Deprecated |
protected CategoryManager |
getCategoryManager()
Deprecated |
View |
getCurrentView()
Deprecated Returns the current view. |
protected CustomDataManager |
getCustomDataManager()
Deprecated |
protected ProductItemManager |
getProductItemManager()
Deprecated |
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. |
protected abstract void |
refreshView(View view)
Deprecated This function is called whenever the current view needs to be refreshed. |
int |
size()
Deprecated 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(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 RemoteException
RemoteException
protected ProductItemManager getProductItemManager() throws RemoteException
RemoteException
- on remote error.ProductItemManager
protected CategoryManager getCategoryManager() throws RemoteException
RemoteException
- on remote error.CategoryManager
protected CatalogQueryManager getCatalogQueryManager() throws RemoteException
RemoteException
- on remote error.CatalogQueryManager
protected CustomDataManager getCustomDataManager() throws RemoteException
RemoteException
- on remote error.CustomDataManager
protected CatalogRequest getCatalogRequest()
RemoteException
- on remote error.CatalogRequest
protected abstract void refreshView(View view) throws RemoteException
view
- The view to refresh.
RemoteException
- on remote error.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.public final int size()
size
in interface ViewIterator
public final boolean hasNext()
true
if the iterator has more elements.
hasNext
in interface ViewIterator
true
if the iterator has more elements.public Object next() throws NoSuchElementException, RemoteException
next
in interface ViewIterator
RemoteException
- on remote error.
NoSuchElementException
- if the iteration has no more elements.public final int getViewCount()
getViewCount
in interface ViewIterator
public final View getCurrentView()
getCurrentView
in interface ViewIterator
public final View getViewAt(int index) throws IndexOutOfBoundsException
getViewAt
in interface ViewIterator
index
- The index of the desired view.
IndexOutOfBoundsException
- if the index is invalid.public final boolean hasNextView()
true
if the iterator has a next view.
hasNextView
in interface ViewIterator
true
if the iterator has a next view.public final boolean hasPreviousView()
true
if the iterator has a previous view.
hasPreviousView
in interface ViewIterator
true
if the iterator has a previous view.public final void gotoNextView() throws NoSuchViewException
gotoNextView
in interface ViewIterator
NoSuchViewException
- if the iterator does not have a next view.public final void gotoPreviousView() throws NoSuchViewException
gotoPreviousView
in interface ViewIterator
NoSuchViewException
- if the iterator does not have a previous view.public final void gotoViewAt(int index) throws NoSuchViewException
gotoViewAt
in interface ViewIterator
index
- The index of the desired view.
NoSuchViewException
- if the index is invalid.
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |