public class BundleDataBean extends BundleAccessBean implements com.ibm.commerce.catalog.beans.BundleInputDataBean, com.ibm.commerce.catalog.beans.BundleSmartDataBean
You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center. Access Beans: Bundle
Mandatory Parameters (for single row retrieval):
Some hints and tips for using this data bean are:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
emptyString| Constructor and Description |
|---|
BundleDataBean()
Constructs an empty BundleDataBean.
|
BundleDataBean(CatalogEntryAccessBean abCatEntry)
Creates a BundleDataBean from a CatalogEntryAccessBean.
|
BundleDataBean(CatalogEntryAccessBean abCatEntry,
CommandContext aCommandContext)
Constructs a BundleDataBean from a CatalogEntryAccessBean and the command context.
|
| Modifier and Type | Method and Description |
|---|---|
AttachmentDataBean[] |
getAllAttachments()
Gets all the attachments in the bundle.
|
AttachmentDataBean[] |
getAttachmentsByUsage()
Gets all the bundle attachments by the specified attachment relation usage.
|
AttachmentUsageDataBean[] |
getAttachmentUsages()
Gets all the attachment relation usage used in the bundle attachments
|
AttributeDataBean[] |
getAttributeDataBeans()
Gets a list of data beans that represent attributes of the product.
|
AttributeAccessBean[] |
getAttributes()
Gets a list of beans that represent attributes of the bundle.
|
RelatedBundleDataBean[] |
getBundleAccessories()
Gets a list of beans which represent bundles that are accessories to this bundle.
|
RelatedBundleDataBean[] |
getBundleAssociations()
Gets a list of beans which represent bundles that are merchandising associations for this bundle.
|
RelatedBundleDataBean[] |
getBundleCrossSells()
Gets a list of beans which represent bundles that are cross-sells to this bundle.
|
CompositeItemDataBean[] |
getBundledItems()
Gets a list of beans which represent items that are components of this bundle.
|
CompositePackageDataBean[] |
getBundledPackages()
Gets a list of beans which represent packages that are components of this bundle.
|
CompositeProductDataBean[] |
getBundledProducts()
Gets the list of beans which represent products that are components of this bundle.
|
java.lang.String |
getBundleID()
Gets the bundle ID that represents the primary key for this bundle.
|
java.lang.String |
getBundlePartNumber()
Gets the part (SKU) number of the bundle.
|
RelatedBundleDataBean[] |
getBundleReplacements()
Gets a list of beans that represent bundles that are replacement to this bundle.
|
RelatedBundleDataBean[] |
getBundleUpSells()
Gets a list of beans that represent bundles that are up-sells to this bundle.
|
PriceDataBean |
getCalculatedContractPrice()
Gets a PriceDataBean that represents the sum of the calculated contract prices for each of the bundle components .
|
PriceDataBean |
getCalculatedPrice()
Gets a PriceDataBean that represents the sum of the calculated prices for each of the bundle components.
|
CommandContext |
getCommandContext()
Gets the current command's context.
|
CatalogEntryDescriptionAccessBean |
getDescription()
Gets a bean representing descriptive information about this bundle.
|
AttributeDataBean[] |
getDescriptiveAttributeDataBeans()
Gets a list of data beans that represent descriptive attributes of the product.
|
AttributeAccessBean[] |
getDescriptiveAttributes()
Gets a list of beans that represent descriptive attributes of the bundle.
|
CategorizedMonetaryAmountsDataBean |
getDisplayTaxes()
Invokes the getTaxes method in PriceDataBean to calculate the taxes for those
tax categories that are displayable at product display time.
|
RelatedDynamicKitDataBean[] |
getDynamicKitAccessories()
Gets a list of beans that represent dynamic kits that are accessories.
|
RelatedDynamicKitDataBean[] |
getDynamicKitAssociations()
Gets a list of beans that represent dynamic kits that are merchandising associations
for this bundle.
|
RelatedDynamicKitDataBean[] |
getDynamicKitCrossSells()
Gets the list of beans which represent dynamic kits that are cross-sells.
|
RelatedDynamicKitDataBean[] |
getDynamicKitUpSells()
Gets the list of beans which represent dynamic kits that are up-sells.
|
RelatedItemDataBean[] |
getItemAccessories()
Gets the list of beans which represent items that are accessories to this bundle.
|
RelatedItemDataBean[] |
getItemAssociations()
Gets the list of beans which represent items that are merchandising associations for this bundle.
|
RelatedItemDataBean[] |
getItemCrossSells()
Gets the list of beans which represent items that are cross-sells to this bundle.
|
RelatedItemDataBean[] |
getItemUpSells()
Gets the list of beans which represent items that are up-sells to this bundle.
|
PriceDataBean |
getListPrice()
Gets a bean that represents the sum of the list prices for each of the bundle components.
|
PriceDataBean |
getMaximumBundlePrice()
Gets the maximum bundle price.
|
PriceDataBean |
getMinimumBundlePrice()
Gets the minimum bundle price.
|
java.lang.String |
getObjectPath()
Gets the path to objects such as images in the context of the current store.
|
RelatedPackageDataBean[] |
getPackageAccessories()
Gets the list of beans which represent packages that are accessories to this bundle.
|
RelatedPackageDataBean[] |
getPackageAssociations()
Gets the list of beans which represent packages that are merchandising associations for this bundle.
|
RelatedPackageDataBean[] |
getPackageCrossSells()
Gets the list of beans which represent packages that are cross-sells to this bundle.
|
RelatedPackageDataBean[] |
getPackageUpSells()
Gets the list of beans which represent packages that are up-sells to this bundle.
|
RelatedProductDataBean[] |
getProductAccessories()
Gets the list of beans which represent products that are accessories to this bundle.
|
RelatedProductDataBean[] |
getProductAssociations()
Gets the list of beans which represent products that are merchandising associations for this bundle.
|
RelatedProductDataBean[] |
getProductCrossSells()
Gets the list of beans which represent products that are cross-sells to this bundle.
|
RelatedProductDataBean[] |
getProductUpSells()
Gets the list of beans which represent products that are up-sells to this bundle.
|
TypedProperty |
getRequestProperties()
Gets the request property passed in at run time.
|
PriceDataBean |
getStandardPrice()
Gets a PriceDataBean that represents the standard contract price for the bundle.
|
boolean |
isAdminMode()
Is the databean used in the administrative mode.
|
boolean |
isAnyMerchandisingAssociated()
Determines whether there are any OOB or custom merchandising associations associated with this catalog entry
|
boolean |
isCalculatedContractPriced()
Determines whether the bundle has a calculated contract price.
|
boolean |
isListPriced()
Determines whether the bundle has a list price.
|
boolean |
isMerchandisingAssociated()
Determines whether there are any merchandising associations associated with this product
|
void |
populate()
Fetches and populates information needed by the bean.
|
void |
setAdminMode(boolean aboolAdminMode)
Sets the administrative mode.
|
void |
setAssociationType(java.lang.String type)
Sets the variable
istrAssociationType, which represents the target association type to be processed by
an internal method called processCatalogEntryAssociation(). |
void |
setAttachmentUsage(java.lang.String astrAttachmentUsage)
Sets the attachment relation usage identifier to get all the attachments of the bundle with the same usage.
|
void |
setBundleID(java.lang.String astrBundleId)
Sets the bundle ID that represents the primary key for this bundle.
|
void |
setBundlePartNumber(java.lang.String astrBundlePartNumber)
Sets the bundle part (SKU) number.
|
void |
setCommandContext(CommandContext aCommandContext)
Sets the command context passed in at run time.
|
void |
setDescription(CatalogEntryDescriptionAccessBean aabDescription)
Sets the descriptive AccessBean
CatalogEntryDescriptionAccessBean about this bundle. |
void |
setRequestProperties(TypedProperty aParam)
Sets the request properties and populates the parameters that are needed by the bean.
|
fulfills, getAvailabilityDate, getBaseItem, getBaseItemId, getBaseItemIdInEntityType, getBundleComponents, getBuyable, getBuyableInEntityType, getCatalogEntriesAccessory, getCatalogEntriesAccessory, getCatalogEntriesAccessory, getCatalogEntriesAccessory, getCatalogEntriesAccessoryByStore, getCatalogEntriesAccessoryByStore, getCatalogEntriesAccessoryByStore, getCatalogEntriesAccessoryByStore, getCatalogEntriesByMAssocTypeAndStore, getCatalogEntriesByMAssocTypeAndStore, getCatalogEntriesByMAssocTypeAndStore, getCatalogEntriesByMAssocTypeAndStore, getCatalogEntriesCrossell, getCatalogEntriesCrossell, getCatalogEntriesCrossell, getCatalogEntriesCrossell, getCatalogEntriesCrossellByStore, getCatalogEntriesCrossellByStore, getCatalogEntriesCrossellByStore, getCatalogEntriesCrossellByStore, getCatalogEntriesUpSell, getCatalogEntriesUpSell, getCatalogEntriesUpSell, getCatalogEntriesUpSell, getCatalogEntriesUpSellByStore, getCatalogEntriesUpSellByStore, getCatalogEntriesUpSellByStore, getCatalogEntriesUpSellByStore, getCatalogEntryReferenceNumber, getCatalogEntryReferenceNumberInEntityType, getDescription, getDescription, getDiscontinueDate, getEndDate, getEndOfServiceDate, getEntity, getField1, getField1InEntityType, getField2, getField2InEntityType, getField3, getField3InEntityType, getField4, getField5, getItemspc_id, getItemspc_idInEntityType, getLanguage_id, getLanguage_idInEntityType, getLastOrderDate, getLastUpdate, getLastUpdateInEntityType, getListPrice, getManufacturerName, getManufacturerPartNumber, getMarkForDelete, getMarkForDeleteInEntityType, getMemberId, getMemberIdInEntityType, getOid, getOnAuction, getOnAuctionInEntityType, getOnSpecial, getOnSpecialInEntityType, getOwner, getParentCatalogEntryIds, getPartNumber, getStartDate, getState, getTemplateFileName, getTemplateFileName, getTemplateFileName, getTemplateFileName, getType, getUrl, instantiateEntity, isCatalogEntryInStore, setAvailabilityDate, setBaseItemId, setBaseItemId, setBuyable, setBuyable, setDiscontinueDate, setEndDate, setEndOfServiceDate, setField1, setField1, setField2, setField2, setField3, setField3, setField4, setField5, setInitKey_catalogEntryReferenceNumber, setInitKey_catalogEntryReferenceNumber, setItemspc_id, setItemspc_id, setLanguage_id, setLanguage_id, setLastOrderDate, setLastUpdate, setLastUpdate, setManufacturerName, setManufacturerPartNumber, setMarkForDelete, setMarkForDelete, setMemberId, setMemberId, setOid, setOnAuction, setOnAuction, setOnSpecial, setOnSpecial, setPartNumber, setStartDate, setState, setUrlpublic static final java.lang.String COPYRIGHT
public BundleDataBean()
public BundleDataBean(CatalogEntryAccessBean abCatEntry)
abCatentry - The CatalogEntryAccessBean.public BundleDataBean(CatalogEntryAccessBean abCatEntry, CommandContext aCommandContext)
abCatEntry - The CatalogEntryAccessbean.aCommandContext - The command context as CommandContext object.public AttachmentDataBean[] getAllAttachments()
AttachmentDataBeanpublic AttachmentDataBean[] getAttachmentsByUsage()
AttachmentDataBeanpublic AttachmentUsageDataBean[] getAttachmentUsages()
AttachmentUsageDataBeanpublic AttributeAccessBean[] getAttributes()
AttributeAccessBean for the bundle.public AttributeAccessBean[] getDescriptiveAttributes()
AttributeAccessBean for the bundle.public RelatedBundleDataBean[] getBundleAccessories() throws ECException
getBundleAccessories in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedBundleDataBean.ECException - An exception occurs during the execution of the method. An exception occurs during the execution of the method.public RelatedBundleDataBean[] getBundleAssociations() throws ECException
istrAssociationType. Set the variable istrAssociationType through the setAssociationType() method before calling getBundleAssociations.
If istrAssociationType is null, all types of merchandising associations will return.
setAssociationType("UPSELL");
RelatedBundleDataBean[] rb = getBundleAssociations();
RelatedBundleDataBean.ECException - An exception occurs during the execution of the method.public RelatedBundleDataBean[] getBundleCrossSells() throws ECException
getBundleCrossSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedBundleDataBean.ECException - An exception occurs during the execution of the method.public CompositeItemDataBean[] getBundledItems() throws ECException
getBundledItems in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanCompositeItemDataBean.ECException - An exception occurs during the execution of the method.public CompositePackageDataBean[] getBundledPackages() throws ECException
getBundledPackages in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanCompositePackageDataBean.ECException - An exception occurs during the execution of the method.public CompositeProductDataBean[] getBundledProducts() throws ECException
getBundledProducts in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanCompositeProductDataBean.ECException - An exception occurs during the execution of the method.public java.lang.String getBundleID()
getBundleID in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanpublic java.lang.String getBundlePartNumber()
getBundlePartNumber in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanpublic RelatedBundleDataBean[] getBundleUpSells() throws ECException
getBundleUpSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedBundleDataBean.ECException - An exception occurs during the execution of the method.public PriceDataBean getCalculatedContractPrice() throws ECException
PriceDataBean.ECException - An exception occurs during the execution of the method.public PriceDataBean getCalculatedPrice() throws ECException
getCalculatedPrice in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanPriceDataBean.ECException - An exception occurs during the execution of the method.public CommandContext getCommandContext()
getCommandContext in interface SmartDataBeanCommandContext objects.public CatalogEntryDescriptionAccessBean getDescription()
getDescription in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeangetDescription in class BundleAccessBeanCatalogEntryDescriptionAccessBean.public CategorizedMonetaryAmountsDataBean getDisplayTaxes() throws ECException
getDisplayTaxes in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanCategorizedMonetaryAmountsDataBean containing the
taxing monetary amounts, names and descriptions, and so on.ECException - An exception occurs during the execution of the method.public RelatedDynamicKitDataBean[] getDynamicKitAssociations() throws ECException
istrAssociationType. Set the variable istrAssociationType through the setAssociationType() method before calling the method getDynamicKitAssociations().
If istrAssociationType is null, all types of merchandising associations will return. For example, the following code returns a list of beans that are dynamic kit up-sells for this bundle:
setAssociationType("UPSELL");
RelatedDynamicKitDataBean[] rb = getDynamicKitAssociations();
RelatedDynamicKitDataBean.ECException - An exception occurs during the execution of the method.public RelatedDynamicKitDataBean[] getDynamicKitAccessories() throws ECException
RelatedDynamicKitDataBean.ECException - An exception occurs during the execution of the method.public RelatedDynamicKitDataBean[] getDynamicKitCrossSells() throws ECException
RelatedDynamicKitDataBean.ECException - An exception occurs during the execution of the method.public RelatedDynamicKitDataBean[] getDynamicKitUpSells() throws ECException
RelatedDynamicKitDataBean.ECException - An exception occurs during the execution of the method.public RelatedItemDataBean[] getItemAssociations() throws ECException
istrAssociationType. Set the variable istrAssociationType through the
setAssociationType() method before calling getItemAssociations. If istrAssociationType is null, all types of merchandising associations will return.
For example, the following code returns a list of beans that are item up-sells for this bundle:
setAssociationType("UPSELL");
RelatedItemDataBean[] rb = getItemAssociations();
RelatedItemDataBean.ECException - An exception occurs during the execution of the method.public RelatedItemDataBean[] getItemAccessories() throws ECException
getItemAccessories in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedItemDataBean.ECException - An exception occurs during the execution of the method.public RelatedItemDataBean[] getItemCrossSells() throws ECException
getItemCrossSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedItemDataBean.ECException - An exception occurs during the execution of the method.public RelatedItemDataBean[] getItemUpSells() throws ECException
getItemUpSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedItemDataBean.ECException - An exception occurs during the execution of the method.public PriceDataBean getListPrice() throws ECException
getListPrice in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanPriceDataBean.ECExceptionpublic java.lang.String getObjectPath()
throws ECException
ECException - An exception occurs during the execution of the method.public RelatedPackageDataBean[] getPackageAssociations() throws ECException
istrAssociationType. Set the variable istrAssociationType through the
setAssociationType() method before calling getPackageAssociations. If istrAssociationType is null, all types of merchandising associations will return.
For example, the following code returns a list of packages that are up-sells for this bundle:
setAssociationType("UPSELL");
RelatedPackageDataBean[] rp = getPackageAssociations();
RelatedPackageDataBean.ECException - An exception occurs during the execution of the method.public RelatedPackageDataBean[] getPackageAccessories() throws ECException
getPackageAccessories in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedPackageDataBean.ECException - An exception occurs during the execution of the method.public RelatedPackageDataBean[] getPackageCrossSells() throws ECException
getPackageCrossSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedPackageDataBean.ECException - An exception occurs during the execution of the method.public RelatedPackageDataBean[] getPackageUpSells() throws ECException
getPackageUpSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedPackageDataBean.ECException - An exception occurs during the execution of the method.public RelatedProductDataBean[] getProductAssociations() throws ECException
istrAssociationType. Set the variable istrAssociationType through the
setAssociationType() method before calling getProductAssociations. If istrAssociationType is null, all types of merchandising associations will return.
For example, the following code returns a list of beans that are product up-sells for this bundle:
setAssociationType("UPSELL");
RelatedProductDataBean[] rb = getProductAssociations();
RelatedProductDataBean.ECException - An exception occurs during the execution of the method.public RelatedProductDataBean[] getProductAccessories() throws ECException
getProductAccessories in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedProductDatabean.ECException - An exception occurs during the execution of the method.public RelatedProductDataBean[] getProductCrossSells() throws ECException
getProductCrossSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedProductDatabean.ECException - An exception occurs during the execution of the method.public RelatedProductDataBean[] getProductUpSells() throws ECException
getProductUpSells in interface com.ibm.commerce.catalog.beans.BundleSmartDataBeanRelatedProductDataBean.ECException - An exception occurs during the execution of the method.public TypedProperty getRequestProperties()
getRequestProperties in interface InputDataBeannull is always returned.public void populate()
populate in interface SmartDataBeanjava.lang.Exception - An exception occurs during the execution of the method.public RelatedBundleDataBean[] getBundleReplacements() throws ECException
RelatedBundleDataBean.ECException - An exception occurs during the execution of the method.public void setBundleID(java.lang.String astrBundleId)
setBundleID in interface com.ibm.commerce.catalog.beans.BundleInputDataBeanastrBundleId - The bundle ID.public void setAssociationType(java.lang.String type)
istrAssociationType, which represents the target association type to be processed by
an internal method called processCatalogEntryAssociation(). Call this method before the following methods to
retrieve a list of specific merchandising association types: getBundleAssociations,
getDynamicKitAssociations, getItemAssociations, getPackageAssociations,
getProductAssociations. If type is null, all types of merchandising associations will return.
type - The merchandising association type. Valid values are stored in the MASSOCTYPE.MASSOCTYPE_ID column, for example, "X-SELL".public void setBundlePartNumber(java.lang.String astrBundlePartNumber)
setBundlePartNumber in interface com.ibm.commerce.catalog.beans.BundleInputDataBeanastrBundlePartNumber - The bundle part (SKU) number.public void setCommandContext(CommandContext aCommandContext)
setCommandContext in interface SmartDataBeanaCommandContext - The command context as CommandContext object.public void setDescription(CatalogEntryDescriptionAccessBean aabDescription)
CatalogEntryDescriptionAccessBean about this bundle.aabDescription - The CatalogEntryDescriptionAccessBean.public void setAttachmentUsage(java.lang.String astrAttachmentUsage)
astrAttachmentUsage - The attachment relation usage identifierpublic void setRequestProperties(TypedProperty aParam)
setRequestProperties in interface InputDataBeanaParam - The request property as TypeProperty object.public boolean isAdminMode()
public void setAdminMode(boolean aboolAdminMode)
The - administrative mode to set: true or false.public PriceDataBean getStandardPrice()
PriceDataBean.public AttributeDataBean[] getAttributeDataBeans()
AttributeDataBean.public AttributeDataBean[] getDescriptiveAttributeDataBeans()
AttributeDataBean.public boolean isMerchandisingAssociated()
public boolean isAnyMerchandisingAssociated()
public PriceDataBean getMinimumBundlePrice()
com.ibm.commerce.price.beans.PriceDataBean with the minimum bundle price.public PriceDataBean getMaximumBundlePrice()
com.ibm.commerce.price.beans.PriceDataBean with the maximum bundle price.public boolean isCalculatedContractPriced()
public boolean isListPriced()