com.ibm.commerce.marketing.segment.commands

Class CustomerSegmentExtractCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CustomerSegmentExtractCmd, 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 CustomerSegmentExtractCmdImpl
    extends TaskCommandImpl
    implements CustomerSegmentExtractCmd
    The default implementation of the CustomerSegmentExtractCmd command. This command extract the customer segment customers information and store these information into the Commerce database for later export. It assume that the staging server and the production server are in-sync with each other. It uses the staging server's customer segment metadata to construct the SQL by by calling the command ListUsersInStoreMemberGroupCmd and then runs the SQL in the production database through the Quick Publish datasource's database connection.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASSNAME
        The full class name for this class.
    • Constructor Detail

      • CustomerSegmentExtractCmdImpl

        public CustomerSegmentExtractCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the business logic for this command. It will extract the customer segment information and store them as a file in the database.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Any exception caught.
      • getStatus

        public boolean getStatus()
        Returns the status of the command execution
        Specified by:
        getStatus in interface CustomerSegmentExtractCmd
        Returns:
        true if the execution was successful else false