com.ibm.commerce.component.giftregistry.commands

Class UpdateGiftRegistryPurchaseRecordCmdImpl

  • All Implemented Interfaces:
    BusinessObjectDocumentCmd, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UpdateGiftRegistryCmd, 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 UpdateGiftRegistryPurchaseRecordCmdImpl
    extends BusinessObjectDocumentCmdImpl
    implements UpdateGiftRegistryCmd
    Create or update the purchase record for the gift item

    Behaviour:
    • execute CheckGiftRegistryPurchaseRecordEligibilityCmd, to validate the inputs
    • execute PersistGiftRegistryItemPurchaseRecordCmd, to store the purchase record to the database

    On error, an ECException is thrown from descendant classes.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UpdateGiftRegistryPurchaseRecordCmdImpl

        public UpdateGiftRegistryPurchaseRecordCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This command checks if a given gift registry purchase record is eligible to be updated or created. Then, this command persists the gift registry purchase record.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException