com.ibm.commerce.catalog.beans
Class CompositePackageDataBean

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

public class CompositePackageDataBean
extends CompositeCatalogEntryAccessBean

This bean represents a composite Package.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Constructor Summary
CompositePackageDataBean()
          Constructs an empty CompositePackageDataBean.
CompositePackageDataBean( CompositeCatalogEntryAccessBean abCompCatEntry)
          Constructs a CompositePackageDataBean from a CompositeCatalogEntryAccessBean.
CompositePackageDataBean( CompositeCatalogEntryAccessBean abCompCatEntry, CommandContext aCommandContext)
          Constructs a CompositePackageDataBean from a CompositeCatalogEntryAccessBean and a command context.
 
Method Summary
  PackageDataBean getPackage()
          Gets a bean that represents the composed package.
 java.lang.String getQuantity()
          Gets the quantity of composite packages.
protected  void setCommandContext( CommandContext aCommandContext)
          Sets the command context passed in at run time.
 void setPackage( PackageDataBean abnPackage)
          Sets the composed package.
 
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

CompositePackageDataBean

public CompositePackageDataBean()
Constructs an empty CompositePackageDataBean.

CompositePackageDataBean

public CompositePackageDataBean(CompositeCatalogEntryAccessBean abCompCatEntry)
                         throws java.rmi.RemoteException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException,
                                javax.ejb.CreateException
Constructs a CompositePackageDataBean 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.

CompositePackageDataBean

public CompositePackageDataBean(CompositeCatalogEntryAccessBean abCompCatEntry,
CommandContext aCommandContext)
                         throws java.rmi.RemoteException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException,
                                javax.ejb.CreateException
Constructs a CompositePackageDataBean 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

getPackage

public PackageDataBean getPackage()
                           throws javax.ejb.FinderException,
                                  javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException
Gets a bean that represents the composed package.
Returns:
The PackageDataBean.
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 packages.
Specified by:
getQuantity in interface CompositeCatalogEntryAccessBeanData
Overrides:
getQuantity in class CompositeCatalogEntryAccessBean
Returns:
The quantity of composite packages.
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.

setPackage

public void setPackage(PackageDataBean abnPackage)
Sets the composed package.
Parameters:
abnPackage - The PackageDataBean.