com.ibm.commerce.catalogmanagement.commands

Class CatalogEntryUpdateCmdImpl

  • All Implemented Interfaces:
    CatalogEntryUpdateCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CatalogEntryUpdateCmdImpl
    extends ControllerCommandImpl
    implements CatalogEntryUpdateCmd
    The CatalogEntryUpdateCmd is a URL and controller command that:
    • Updates an existing catalog entry, catalog entry type cannot be changed.
    • Update a catalog entry description.
      • If the catalog entry is a product, then update the base item description.
    • If catalog entry is an item, then update the item specification.
    • If catalog entry is a product, then update the base item.
    • If the catalog entry description does not exists, then a new catalog entry description of the specified language will be created. A new base item description will be created if the catalog entry is a product. Any unspecified fields will be assigned default value, and not copied from the existing description.
    Parameters:
    • All fields in the CATENTRY table, except IBM internal use columns.
    • All fields in the CATENTDESC table
      • No fields required.
    • No fields required.
    • No fields required.
    • catalog entry ID and new language ID.
    Access Beans:
    • CatalogEntryAccessBean
    • CatalogEntryDescriptionAccessBean
      • BaseItemDescriptionAccessBean
    • ItemSpecificationAccessBean
    • BaseItemAccessBean
    • CatalogEntryDescriptionAccessBean, BaseItemDescriptionAccessBean
    Task Commands:
    • UpdateCatalogEntryCmd,
    • UpdateCatalogEntryDescCmd.
    Other Controller Commands
    None
    Mandatory Parameters
    catentryId or partnumber
    Additional Parameters
    none
    Optional Parameters
    buyable, field1, field2, field3, field4, field5, keyword, markForDelete, mfName, mfPartnumber, onAuction, onSpecial, catEntURL, aux1, aux2, available, fImage, descLangId, lDesc, name, published, sDesc, tImage, XML, URL, startDate, endDate, availabilityDate, lastOrderDate, endOfServiceDate, discontinueDate.
    Default Values
    descLangId=language being used, published=0, memberId = owner ID of store.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASSNAME
        The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogEntryUpdateCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • CatalogEntryUpdateCmdImpl

        public CatalogEntryUpdateCmdImpl()
    • Method Detail

      • getAuxdescription1

        public java.lang.String getAuxdescription1()
        Get additional description of the catalog entry description
        Returns:
        java.lang.String
      • getAuxdescription2

        public java.lang.String getAuxdescription2()
        Get the second additional description of the catalog entry description
        Returns:
        java.lang.String
      • getAvailable

        public java.lang.Integer getAvailable()
        Get the length of time to available of the catalog entry
        Returns:
        java.lang.Integer
      • getAvailablitydate

        public java.sql.Timestamp getAvailablitydate()
        Get the availability date of the catalog entry
        Returns:
        java.sql.Timestamp
      • getBuyable

        public java.lang.Integer getBuyable()
        Get the buyable option of the catalog entry
        Returns:
        java.lang.Integer
      • getCatEntURL

        public java.lang.String getCatEntURL()
        Get the URL path of the catalog entry
        Returns:
        java.lang.String
      • getDescLanguage

        public java.lang.Integer getDescLanguage()
        Get the language Id of the catalog entry description
        Returns:
        java.lang.Integer
      • getEndDate

        public java.sql.Timestamp getEndDate()
        Get the end date for the catalog entry
        Returns:
        java.sql.Timestamp
      • getExpirationdate

        public java.sql.Timestamp getExpirationdate()
        Get the expiration date for the item version
        Returns:
        java.sql.Timestamp
      • getField1

        public java.lang.Integer getField1()
        Get field 1 of the catalog entry
        Returns:
        java.lang.Integer
      • getField2

        public java.lang.Integer getField2()
        Get field 2 of the catalog entry
        Returns:
        java.lang.Integer
      • getField3

        public java.math.BigDecimal getField3()
        Get field 3 of the catalog entry
        Returns:
        java.math.BigDecimal
      • getField4

        public java.lang.String getField4()
        Get field 4 of the catalog entry
        Returns:
        java.lang.String
      • getField5

        public java.lang.String getField5()
        Get field 5 of the catalog entry
        Returns:
        java.lang.String
      • getFullimage

        public java.lang.String getFullimage()
        Get the path of the full image of the catalog entry description
        Returns:
        java.lang.String
      • getLastupdate

        public java.sql.Timestamp getLastupdate()
        Get the last update time of the catalog entry
        Returns:
        java.sql.Timestamp
      • getLongdescription

        public java.lang.String getLongdescription()
        Get the long description of the catalog entry description
        Returns:
        java.lang.String
      • getMarkfordelete

        public java.lang.Integer getMarkfordelete()
        Get the mark for delete value of the catalog entry 0 = catalog entry not marked for delete 1 = catalog entry marked for delete
        Returns:
        java.lang.Integer
      • getMfname

        public java.lang.String getMfname()
        Get the manufacturer name of the catalog entry
        Returns:
        java.lang.String
      • getMfpartnumber

        public java.lang.String getMfpartnumber()
        Get the manufacturer part number of the catalog entry
        Returns:
        java.lang.String
      • getName

        public java.lang.String getName()
        Get the language dependent name of the catalog entry
        Returns:
        java.lang.String
      • getOnauction

        public java.lang.Integer getOnauction()
        Get the on auction option of the catalog entry
        Returns:
        java.lang.Integer
      • getOnspecial

        public java.lang.Integer getOnspecial()
        Get the on special option of the catalog entry
        Returns:
        java.lang.Integer
      • getPartnumber

        public java.lang.String getPartnumber()
        Get the part number of the catalog entry
        Specified by:
        getPartnumber in interface CatalogEntryUpdateCmd
        Returns:
        java.lang.String
      • getPublished

        public java.lang.Integer getPublished()
        Get the published flag of the catalog entry description 0 = catalog entry description not published 1 = catalog entry description published
        Returns:
        java.lang.Integer
      • getShortdescription

        public java.lang.String getShortdescription()
        Get the short description of the catalog entry description
        Returns:
        java.lang.String
      • getStartDate

        public java.sql.Timestamp getStartDate()
        Get the start date for the catalog entry
        Returns:
        java.sql.Timestamp
      • getAvailabilityDate

        public java.sql.Timestamp getAvailabilityDate()
        Get the availability date for the catalog entry
        Returns:
        java.sql.Timestamp
      • getLastOrderDate

        public java.sql.Timestamp getLastOrderDate()
        Get the lastOrder date for the catalog entry
        Returns:
        java.sql.Timestamp
      • getEndOfServiceDate

        public java.sql.Timestamp getEndOfServiceDate()
        Get the endOfService date for the catalog entry
        Returns:
        java.sql.Timestamp
      • getDiscontinueDate

        public java.sql.Timestamp getDiscontinueDate()
        Get the discontinue date for the catalog entry
        Returns:
        java.sql.Timestamp
      • getThumbnail

        public java.lang.String getThumbnail()
        Get the thumbnail image of the catalog entry
        Returns:
        java.lang.String
      • getURL

        public java.lang.String getURL()
        Get the redirect URL
        Returns:
        java.lang.String
      • getXMLdetail

        public java.lang.String getXMLdetail()
        Get the XML detail of the catalog entry description
        Returns:
        java.lang.String
      • performExecute

        public void performExecute()
                            throws ECException
        The main program for CatalogEntryUpdate command. This method calls the UpdateCatalogEntryCmd, and UpdateCatalogEntryDescCmd task commands. Then the catalog entry ID, and description language are set in the response properties.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • reset

        public void reset()
        This method reset all the variables used in CatalogEntryUpdate command
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setAuxdescription1

        public void setAuxdescription1(java.lang.String astrAuxdescription1)
        Set additional description for the catalog entry description
        Specified by:
        setAuxdescription1 in interface CatalogEntryUpdateCmd
        Parameters:
        astrAuxdescription1 - java.lang.String
      • setAuxdescription2

        public void setAuxdescription2(java.lang.String astrAuxdescription2)
        Set the second additional description for the catalog entry description
        Specified by:
        setAuxdescription2 in interface CatalogEntryUpdateCmd
        Parameters:
        astrAuxdescription2 - java.lang.String
      • setAvailabilitydate

        public void setAvailabilitydate(java.sql.Timestamp atmAvailabilitydate)
        Set the availability date for the catalog entry description
        Specified by:
        setAvailabilitydate in interface CatalogEntryUpdateCmd
        Parameters:
        atmAvailabilitydate - java.sql.Timestamp
      • setAvailable

        public void setAvailable(java.lang.Integer anAvailable)
        Set the number of days to available for the catalog entry
        Specified by:
        setAvailable in interface CatalogEntryUpdateCmd
        Parameters:
        anAvailable - java.lang.Integer
      • setBuyable

        public void setBuyable(java.lang.Integer anBuyable)
        Set the buyable option of the catalog entry 0 = catalog entry not buyable 1 = catalog entry buyable
        Specified by:
        setBuyable in interface CatalogEntryUpdateCmd
        Parameters:
        anBuyable - java.lang.Integer
      • setCatentryId

        public void setCatentryId(java.lang.Long anCatentryId)
        Set the catalog entry Id
        Specified by:
        setCatentryId in interface CatalogEntryUpdateCmd
        Parameters:
        anCatentryId - java.lang.Long
      • setCatEntURL

        public void setCatEntURL(java.lang.String astrCatEntURL)
        Set the URL path for the catalog entry
        Specified by:
        setCatEntURL in interface CatalogEntryUpdateCmd
        Parameters:
        astrCatEntURL - java.lang.String
      • setDescLanguage

        public void setDescLanguage(java.lang.Integer anDescLanguage)
        Set language Id of catalog entry description
        Specified by:
        setDescLanguage in interface CatalogEntryUpdateCmd
        Parameters:
        anDescLanguage - java.lang.Integer
      • setEndDate

        public void setEndDate(java.sql.Timestamp atmEndDate)
        Set an end date for the catalog entry
        Specified by:
        setEndDate in interface CatalogEntryUpdateCmd
        Parameters:
        atmEndDate - java.sql.Timestamp
      • setExpirationdate

        public void setExpirationdate(java.sql.Timestamp atmExpirationdate)
        Set an expiration date for the item version
        Specified by:
        setExpirationdate in interface CatalogEntryUpdateCmd
        Parameters:
        atmExpirationdate - java.sql.Timestamp
      • setField1

        public void setField1(java.lang.Integer anField1)
        Set field 1 of the catalog entry
        Specified by:
        setField1 in interface CatalogEntryUpdateCmd
        Parameters:
        anField1 - java.lang.Integer
      • setField2

        public void setField2(java.lang.Integer anField2)
        Set field 2 of the catalog entry
        Specified by:
        setField2 in interface CatalogEntryUpdateCmd
        Parameters:
        anField2 - java.lang.Integer
      • setField3

        public void setField3(java.math.BigDecimal adField3)
        Set field 3 of the catalog entry
        Specified by:
        setField3 in interface CatalogEntryUpdateCmd
        Parameters:
        adField - java.math.BigDecimal
      • setField4

        public void setField4(java.lang.String astrField4)
        Set field 4 of the catalog entry
        Specified by:
        setField4 in interface CatalogEntryUpdateCmd
        Parameters:
        astrField4 - java.lang.String
      • setField5

        public void setField5(java.lang.String astrField5)
        Set field 5 of the catalog entry
        Specified by:
        setField5 in interface CatalogEntryUpdateCmd
        Parameters:
        astrField5 - java.lang.String
      • setFullimage

        public void setFullimage(java.lang.String astrFullimage)
        Set the path of the full image of the catalog entry description
        Specified by:
        setFullimage in interface CatalogEntryUpdateCmd
        Parameters:
        astrFullimage - java.lang.String
      • setKeyword

        public void setKeyword(java.lang.String astrKeyword)
        Set the keyword for the catalog entry description
        Specified by:
        setKeyword in interface CatalogEntryUpdateCmd
        Parameters:
        astrKeyword - java.lang.String
      • setLastupdate

        public void setLastupdate(java.sql.Timestamp atmLastupdate)
        Sets the date and time when the catalog entry was updated
        Parameters:
        atmLastupdate - java.sql.Timestamp
      • setLongdescription

        public void setLongdescription(java.lang.String astrLongdescription)
        Set the long description of catalog entry
        Specified by:
        setLongdescription in interface CatalogEntryUpdateCmd
        Parameters:
        astrLongdescription - java.lang.String
      • setMarkfordelete

        public void setMarkfordelete(java.lang.Integer anMarkfordelete)
        Set the mark for delete flag of the catalog entry 0 = catalog entry not marked for delete 1 = catalog entry marked for delete
        Specified by:
        setMarkfordelete in interface CatalogEntryUpdateCmd
        Parameters:
        anMarkfordelete - java.lang.Integer
      • setMemberId

        public void setMemberId(java.lang.Long anMemberId)
        Set the owner id of the catalog entry
        Specified by:
        setMemberId in interface CatalogEntryUpdateCmd
        Parameters:
        anMemberId - java.lang.Long
      • setMfname

        public void setMfname(java.lang.String astrMfname)
        Set manufacturer name of the catalog entry
        Specified by:
        setMfname in interface CatalogEntryUpdateCmd
        Parameters:
        astrMfname - java.lang.String
      • setMfpartnumber

        public void setMfpartnumber(java.lang.String astrMfpartnumber)
        Set the part number of the catalog entry used by the manufacturer
        Specified by:
        setMfpartnumber in interface CatalogEntryUpdateCmd
        Parameters:
        astrMfpartnumber - java.lang.String
      • setName

        public void setName(java.lang.String astrName)
        Set language dependent name of catalog entry description
        Specified by:
        setName in interface CatalogEntryUpdateCmd
        Parameters:
        astrName - java.lang.String
      • setOnauction

        public void setOnauction(java.lang.Integer anOnauction)
        Set the on auction option of the catalog entry 0 = catalog entry not on auction 1 = catalog entry on auction
        Specified by:
        setOnauction in interface CatalogEntryUpdateCmd
        Parameters:
        anOnauction - java.lang.Integer
      • setOnspecial

        public void setOnspecial(java.lang.Integer anOnspecial)
        Set the on special option of the catalog entry 0 = catalog entry not on special 1 = catalog entry on special
        Specified by:
        setOnspecial in interface CatalogEntryUpdateCmd
        Parameters:
        anOnspecial - java.lang.Integer
      • setPartnumber

        public void setPartnumber(java.lang.String astrPartnumber)
        Set the partnumber of the catalog entry
        Specified by:
        setPartnumber in interface CatalogEntryUpdateCmd
        Parameters:
        astrPartnumber - java.lang.String
      • setPublished

        public void setPublished(java.lang.Integer anPublished)
        Set the published flag of the catalog entry description 0 = catalog entry description not published 1 = catalog entry description published
        Specified by:
        setPublished in interface CatalogEntryUpdateCmd
        Parameters:
        anPublished - java.lang.Integer
      • setShortdescription

        public void setShortdescription(java.lang.String astrShortdescription)
        Set the short description of the catalog entry description
        Specified by:
        setShortdescription in interface CatalogEntryUpdateCmd
        Parameters:
        astrShortdescription - java.lang.String
      • setStartDate

        public void setStartDate(java.sql.Timestamp atmStartDate)
        Set a start date for the catalog entry
        Specified by:
        setStartDate in interface CatalogEntryUpdateCmd
        Parameters:
        atmStartDate - java.sql.Timestamp
      • setAvailabilityDate

        public void setAvailabilityDate(java.sql.Timestamp atmAvailabilityDate)
        Set the availability date for the catalog entry
        Specified by:
        setAvailabilityDate in interface CatalogEntryUpdateCmd
        Parameters:
        atmAvailabilityDate - java.sql.Timestamp
      • setLastOrderDate

        public void setLastOrderDate(java.sql.Timestamp atmLastOrderDate)
        Set a lastOrder date for the catalog entry
        Specified by:
        setLastOrderDate in interface CatalogEntryUpdateCmd
        Parameters:
        atmLastOrderDate - java.sql.Timestamp
      • setEndOfServiceDate

        public void setEndOfServiceDate(java.sql.Timestamp atmEndOfServiceDate)
        Set the endOfService date for the catalog entry
        Specified by:
        setEndOfServiceDate in interface CatalogEntryUpdateCmd
        Parameters:
        atmEndOfServiceDate - java.sql.Timestamp
      • setDiscontinueDate

        public void setDiscontinueDate(java.sql.Timestamp atmDiscontinueDate)
        Set a discontinue date for the catalog entry
        Specified by:
        setDiscontinueDate in interface CatalogEntryUpdateCmd
        Parameters:
        atmDiscontinueDate - java.sql.Timestamp
      • setThumbnail

        public void setThumbnail(java.lang.String astrThumbnail)
        Set the path to the thumbnail image of the catalog entry description
        Specified by:
        setThumbnail in interface CatalogEntryUpdateCmd
        Parameters:
        astrThumbnail - java.lang.String
      • setURL

        public void setURL(java.lang.String astrURL)
        Set a redirect URL
        Specified by:
        setURL in interface CatalogEntryUpdateCmd
        Parameters:
        astrURL - java.lang.String
      • setXMLdetail

        public void setXMLdetail(java.lang.String astrXMLdetail)
        Set the XML detail of the catalog entry description
        Specified by:
        setXMLdetail in interface CatalogEntryUpdateCmd
        Parameters:
        astrXMLdetail - java.lang.String