CatalogItemView Class

com.beasys.commerce.ebusiness.catalog
CatalogItemView Class

public class CatalogItemView

    extends Object
    implements Serializable, View

A CatalogItemView is a window onto a large CatalogItem result set. It has a size (the number of items in the view), a beginning index (the index of the first item in the view), and an ending index (the index of the last item in the view). Additionally, a CatalogItemViewhas an index within the context of a ViewIterator.

Related Topics

View
ViewIterator


Hierarchy
Object
  CatalogItemView
All Implemented Interfaces

Serializable, View

Constructor Summary

CatalogItemView()

Default constructor
CatalogItemView(int size, int firstIndex, int lastIndex, int viewIndex)

Creates a new CatalogItemView with the given size, first index, last index, and view index.
 

Method Summary

public int
getFirstIndex()
Returns the index of the first item in the view.
public int
getLastIndex()
Returns the index of the last item in the view.
public int
getSize()
Returns the number of items in the view.
public int
getViewIndex()
Returns the index of this View within its ViewIterator.
public String
toString()
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   
Methods from interface com.beasys.commerce.ebusiness.catalog.View
getFirstIndex, getLastIndex, getSize, getViewIndex
 

Constructor Detail

CatalogItemView

public CatalogItemView()
Default constructor

CatalogItemView

public CatalogItemView(int size, 
                       int firstIndex, 
                       int lastIndex, 
                       int viewIndex)
Creates a new CatalogItemView with the given size, first index, last index, and view index.
 

Method Detail

getFirstIndex() Method

public int getFirstIndex()
Returns the index of the first item in the view.

Returns

The index of the first item in the view.

getLastIndex() Method

public int getLastIndex()
Returns the index of the last item in the view.

Returns

The index of the last item in the view.

getSize() Method

public int getSize()
Returns the number of items in the view.

Returns

The number of ites in the view.

getViewIndex() Method

public int getViewIndex()
Returns the index of this View within its ViewIterator.

Returns

The index of this View within its ViewIterator.

toString() Method

public String toString()
Overrides
Object.toString()

Returns

the string representation of this CatalogItemView.