com.ibm.commerce.contract.commands

Interface RetrievePriceRuleCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.TaskCommand
    All Known Implementing Classes:
    DummyRetrievePriceRuleCmdImpl, RetrievePriceRuleCmdImpl


    public interface RetrievePriceRuleCmd
    extends com.ibm.commerce.command.TaskCommand
    This task command is used to retrieve the price rule Id which is assigned to a contract.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      The name of the default implementation class.
      static java.lang.String NAME
      The name of this interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Long getPriceRuleId()
      Gets the price rule Id which is assigned to the contract.
      void setContractId(java.lang.Long contractId)
      Sets the contract Id.
      void setEffectiveTime(java.sql.Timestamp effectiveTime)
      Sets the effective time.
      void setMemberId(java.lang.Long memberId)
      Sets the member Id.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The name of the default implementation class.
        See Also:
        Constant Field Values
    • Method Detail

      • getPriceRuleId

        java.lang.Long getPriceRuleId()
        Gets the price rule Id which is assigned to the contract. This method must be called after the command execution.
        Returns:
        The retrieved price rule Id.
      • setContractId

        void setContractId(java.lang.Long contractId)
        Sets the contract Id.
        Parameters:
        contractId - The contract Id to set.
      • setEffectiveTime

        void setEffectiveTime(java.sql.Timestamp effectiveTime)
        Sets the effective time.
        Parameters:
        effectiveTime - The effective time of the retrieved price rule. If it is null, the current time is used.
      • setMemberId

        void setMemberId(java.lang.Long memberId)
        Sets the member Id.
        Parameters:
        memberId - The member Id to set.