com.ibm.commerce.catalog.beans
Class CompositeItemDataBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.catalog.objects.CompositeCatalogEntryAccessBean
              |
              +--com.ibm.commerce.catalog.beans.CompositeItemDataBean
All Implemented Interfaces:
CompositeCatalogEntryAccessBeanData

public class CompositeItemDataBean
extends CompositeCatalogEntryAccessBean

This bean represents a composite Item.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Constructor Summary
CompositeItemDataBean()
          Constructs an empty CompositeItemDataBean.
CompositeItemDataBean( CompositeCatalogEntryAccessBean abCompCatEntry)
          Constructs a CompositeItemDataBean from a CompositeCatalogEntryAccessBean.
CompositeItemDataBean( CompositeCatalogEntryAccessBean abCompCatEntry, CommandContext aCommandContext)
          Constructs a CompositeItemDataBean from a CompositeCatalogEntryAccessBean and a command context.
 
Method Summary
  ItemDataBean getItem()
          Gets a bean that represents the composed item.
 java.lang.String getQuantity()
          Gets the quantity of composite items.
protected  void setCommandContext( CommandContext aCommandContext)
          Sets the command context passed in at run time
 void setItem( ItemDataBean abnItem)
          Sets the composed item.
 
Methods inherited from class com.ibm.commerce.catalog.objects. CompositeCatalogEntryAccessBean
commitCopyHelper, defaultJNDIName, findBundleComponents, findPackageComponents, getCompositeCatalogEntry, getField1, getField2, getField2InEJBType, getField3, getField3InEJBType, getFromCatalogEntryReferenceNumber, getFromCatalogEntryReferenceNumberInEJBType, getGroupName, getOid, getQuantityInEJBType, getToCatalogEntryReferenceNumber, getToCatalogEntryReferenceNumberInEJBType, instantiateEJB, instantiateEJBByPrimaryKey, refreshCopyHelper, setField1, setField2, setField2, setField3, setField3, setFromCatalogEntryReferenceNumber, setFromCatalogEntryReferenceNumber, setGroupName, setInitKey_fromCatalogEntryReferenceNumber, setInitKey_relationship_type, setInitKey_toCatalogEntryReferenceNumber, setOid, setQuantity, setQuantity, setToCatalogEntryReferenceNumber, setToCatalogEntryReferenceNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values
Constructor Detail

CompositeItemDataBean

public CompositeItemDataBean()
Constructs an empty CompositeItemDataBean.

CompositeItemDataBean

public CompositeItemDataBean(CompositeCatalogEntryAccessBean abCompCatEntry)
                      throws java.rmi.RemoteException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException,
                             javax.ejb.CreateException
Constructs a CompositeItemDataBean from a CompositeCatalogEntryAccessBean.
Parameters:
abCompCatEntry - The CompositeCatalogEntryAccessBean.
Throws:
CreateException - In the execution of the method, a create exception occurs.
FinderException - In the execution of the method, a finder exception occurs.
NamingException - In the execution of the method, a naming exception occurs.
RemoteException - In the execution of the method, a remote exception occurs.

CompositeItemDataBean

public CompositeItemDataBean(CompositeCatalogEntryAccessBean abCompCatEntry,
CommandContext aCommandContext)
                      throws java.rmi.RemoteException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException,
                             javax.ejb.CreateException
Constructs a CompositeItemDataBean from a CompositeCatalogEntryAccessBean and a command context.
Parameters:
abCompCatEntry - The CompositeCatalogEntryAccessBean.
aCommandContext - The command context as CommandContext object.
Throws:
CreateException - In the execution of the method, a create exception occurs.
FinderException - In the execution of the method, a finder exception occurs.
NamingException - In the execution of the method, a naming exception occurs.
RemoteException - In the execution of the method, a remote exception occurs.
Method Detail

getItem

public ItemDataBean getItem()
                     throws javax.ejb.FinderException,
                            javax.naming.NamingException,
                            javax.ejb.CreateException,
                            java.rmi.RemoteException
Gets a bean that represents the composed item.
Returns:
The ItemDataBean.
Throws:
CreateException - In the execution of the method, a create exception occurs.
FinderException - In the execution of the method, a finder exception occurs.
NamingException - In the execution of the method, a naming exception occurs.
RemoteException - In the execution of the method, a remote exception occurs.

getQuantity

public java.lang.String getQuantity()
                             throws javax.ejb.FinderException,
                                    javax.naming.NamingException,
                                    javax.ejb.CreateException,
                                    java.rmi.RemoteException
Gets the quantity of composite items.
Specified by:
getQuantity in interface CompositeCatalogEntryAccessBeanData
Overrides:
getQuantity in class CompositeCatalogEntryAccessBean
Returns:
The quantity of composite items.
Throws:
CreateException - In the execution of the method, a create exception occurs.
FinderException - In the execution of the method, a finder exception occurs.
NamingException - In the execution of the method, a naming exception occurs.
RemoteException - In the execution of the method, a remote exception occurs.
javax.naming.NamingException
java.rmi.RemoteException

setCommandContext

protected void setCommandContext(CommandContext aCommandContext)
Sets the command context passed in at run time
Parameters:
aCommandContext - the command context as CommandContext object.

setItem

public void setItem(ItemDataBean abnItem)
Sets the composed item.
Parameters:
abnItem - The ItemDataBean.