Class CustomerSegmentExtractCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CustomerSegmentExtractCmd,,,,,,

    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


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

        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
        performExecute in class AbstractECTargetableCommand
        ECException - Any exception caught.
      • getStatus

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