com.ibm.commerce.emarketing.emailtemplate.commands

Class EmailTemplateAddTaskCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.emarketing.emailtemplate.commands.EmailTemplateAddTaskCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, EmailTemplateAddTaskCmd, EmailTemplateConstants, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class EmailTemplateAddTaskCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements EmailTemplateAddTaskCmd, EmailTemplateConstants
    The default implementation of EmailTemplateAddTaskCmd.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright String
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmailTemplateAddTaskCmdImpl

        public EmailTemplateAddTaskCmdImpl()
    • Method Detail

      • getEmailTemplateDataObject

        public EmailTemplateDatabean getEmailTemplateDataObject()
        Returns the e-mail template object, which is data holder object. This object contains all the data which will be used while inserting a new row in to the database.
        Returns:
        E-mail template Data Bean.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Updates the database by inserting a new row into EMLMSG, EMLCONTENT, and EMLCLREL tables. This creates a new template in the database.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
      • setEmailTemplateDataObject

        public void setEmailTemplateDataObject(EmailTemplateDatabean newEmailTemplateObject)
        Sets the e-mail template object, which is data holder object. This object contains all the data which will be used while inserting a new row in to the database.
        Specified by:
        setEmailTemplateDataObject in interface EmailTemplateAddTaskCmd
        Parameters:
        Email - template Object
      • validate

        public void validate()
                      throws com.ibm.commerce.exception.ECException
        Validates that values are not null for all the columns defined as non-null in the EMLMSG and EMLCONTENT tables.
        Throws:
        com.ibm.commerce.exception.ECException