com.ibm.commerce.tools.contract.beans

Class ProductSearchDataBean

  • java.lang.Object
    • com.ibm.commerce.tools.contract.beans.ProductSearchDataBean
  • All Implemented Interfaces:
    java.io.Serializable


    public class ProductSearchDataBean
    extends java.lang.Object
    implements java.io.Serializable
    This data bean represents a Product Search object. The orderable item is called a product, such as Thinkpad T21, by using this data bean, can get its store identifier it belongs to. When retrieving all the data associated with a Catalog Entry or a Category, the data bean will be called. The unique identifier of the entry and the language identifier are prerequisite parameters that need to be set before populate.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ProductSearchDataBean()
      Creates a ProductSearchDataBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCategoryName()
      Gets the name of the category the product is in
      java.lang.String getCatentryType()
      Gets the type of the catalog entry
      com.ibm.commerce.command.CommandContext getCommandContext()
      Gets the command context
      java.math.BigDecimal getID()
      Gets the unique identifier of the entry
      java.lang.String getIdentifier()
      Gets the identifier of the entry.
      java.lang.String getLanguageId()
      Gets the language in which to return the data
      java.math.BigDecimal getMemberID()
      Gets the member identifier of the owner of the entry
      java.lang.String getName()
      Gets the name of the entry
      java.lang.Long getNumOfSKUs()
      Gets the number of SKUs under this product
      java.lang.String getPublished()
      Gets the published state of the product
      java.lang.String getQuantityUnit()
      Gets the inventory of the product
      java.lang.String getShortDescription()
      Gets the short description of the entry
      java.lang.String getStoreId()
      Gets the store identifier in which to find entries
      void populate()
      This method is used to populate the data using the unique identifier and the language identifier.
      void setCatentryType(java.lang.String newCatentryType)
      Sets the type of the entry
      void setCommandContext(com.ibm.commerce.command.CommandContext newCommandContext)
      Sets the command context
      void setID(java.math.BigDecimal newCatalogEntryID)
      Sets the unique identifier of the entry
      void setIdentifier(java.lang.String newPartNumber)
      Sets the identifier of the entry
      void setLanguageId(java.lang.String astrLanguageId)
      Sets the language identifier in which to find entries.
      void setMemberID(java.math.BigDecimal newMemberID)
      Sets the member identifier of the owner of the entry
      void setName(java.lang.String newName)
      Sets the name of the entry
      void setSearchType(java.lang.String searchType)
      Sets the type of search to perform
      void setShortDescription(java.lang.String newShortDescription)
      Sets the short description of the entry
      void setStoreId(java.lang.String newM_strStoreId)
      Sets the store identifier in which to find entries
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProductSearchDataBean

        public ProductSearchDataBean()
        Creates a ProductSearchDataBean
    • Method Detail

      • getCategoryName

        public java.lang.String getCategoryName()
        Gets the name of the category the product is in
        Returns:
        java.lang.String
      • getCatentryType

        public java.lang.String getCatentryType()
        Gets the type of the catalog entry
        Returns:
        java.lang.String
      • getCommandContext

        public com.ibm.commerce.command.CommandContext getCommandContext()
        Gets the command context
        Returns:
        com.ibm.commerce.command.CommandContext
      • getID

        public java.math.BigDecimal getID()
        Gets the unique identifier of the entry
        Returns:
        java.math.BigDecimal
      • getIdentifier

        public java.lang.String getIdentifier()
        Gets the identifier of the entry. This is the SKU or part number for a catalog entry. This is the identifier for a category.
        Returns:
        java.lang.String
      • getLanguageId

        public java.lang.String getLanguageId()
        Gets the language in which to return the data
        Returns:
        java.lang.String
      • getMemberID

        public java.math.BigDecimal getMemberID()
        Gets the member identifier of the owner of the entry
        Returns:
        java.math.BigDecimal
      • getName

        public java.lang.String getName()
        Gets the name of the entry
        Returns:
        java.lang.String
      • getNumOfSKUs

        public java.lang.Long getNumOfSKUs()
        Gets the number of SKUs under this product
        Returns:
        java.lang.Long
      • getPublished

        public java.lang.String getPublished()
        Gets the published state of the product
        Returns:
        String
      • getQuantityUnit

        public java.lang.String getQuantityUnit()
        Gets the inventory of the product
        Returns:
        String
      • getShortDescription

        public java.lang.String getShortDescription()
        Gets the short description of the entry
        Returns:
        java.lang.String
      • getStoreId

        public java.lang.String getStoreId()
        Gets the store identifier in which to find entries
        Returns:
        java.lang.String
      • populate

        public void populate()
        This method is used to populate the data using the unique identifier and the language identifier. Loads data into the data bean when the DataBeanManager.activate() runs.
      • setCatentryType

        public void setCatentryType(java.lang.String newCatentryType)
        Sets the type of the entry
        Parameters:
        newCatentryType - java.lang.String
      • setCommandContext

        public void setCommandContext(com.ibm.commerce.command.CommandContext newCommandContext)
        Sets the command context
        Parameters:
        newCommandContext - com.ibm.commerce.command.CommandContext
      • setID

        public void setID(java.math.BigDecimal newCatalogEntryID)
        Sets the unique identifier of the entry
        Parameters:
        newCatalogEntryID - java.math.BigDecimal
      • setIdentifier

        public void setIdentifier(java.lang.String newPartNumber)
        Sets the identifier of the entry
        Parameters:
        newPartNumber - java.lang.String
      • setLanguageId

        public void setLanguageId(java.lang.String astrLanguageId)
        Sets the language identifier in which to find entries.
        Parameters:
        astrLanguageId - java.lang.String
      • setMemberID

        public void setMemberID(java.math.BigDecimal newMemberID)
        Sets the member identifier of the owner of the entry
        Parameters:
        newMemberID - java.math.BigDecimal
      • setName

        public void setName(java.lang.String newName)
        Sets the name of the entry
        Parameters:
        newName - java.lang.String
      • setSearchType

        public void setSearchType(java.lang.String searchType)
        Sets the type of search to perform
        Parameters:
        searchType - String
      • setShortDescription

        public void setShortDescription(java.lang.String newShortDescription)
        Sets the short description of the entry
        Parameters:
        newShortDescription - java.lang.String
      • setStoreId

        public void setStoreId(java.lang.String newM_strStoreId)
        Sets the store identifier in which to find entries
        Parameters:
        newM_strStoreId - java.lang.String