Class RateParameters

    • Field Detail

      • creationValue

        protected BigDecimal creationValue
        For most rate types the creation value is zero by definition, and it cannot be changed. For particular types it may be updateable, so there is no setter in this class, but subclasses may define a setter. That is also the reason it is protected and not private.
    • Constructor Detail

      • RateParameters

        public RateParameters()
    • Method Detail

      • getCreationValue

        public BigDecimal getCreationValue()
      • getCurrency

        public Currency getCurrency()
      • getEndDate

        public Date getEndDate()
      • getRateType

        public abstract RateType getRateType()
      • getStartDate

        public Date getStartDate()
      • isActual

        public boolean isActual()
        Returns if this RateParameters is the actual version. RateParameters is stored as a history log, so all old versions are kept. Only the actual version has an endDate which is null.
      • isMarkedForResetting

        public boolean isMarkedForResetting()
        reads the markedForResetting flag.
        If a rate is disabled, all accounts must be reset, that is: all rates connected to accounts must be set to null. This is done via a background task. This flag is set to true as soon as an enabled rate is disabled. It is set back to false when the account resetting task has succesfully finished.
      • isShowToUser

        public boolean isShowToUser()
      • setCurrency

        public void setCurrency​(Currency currency)
      • setEndDate

        public void setEndDate​(Date endDate)
      • setMarkedForResetting

        public void setMarkedForResetting​(boolean markedForResetting)
        Parameters:
        markedForResetting -
      • setShowToUser

        public void setShowToUser​(boolean showToUser)
      • setStartDate

        public void setStartDate​(Date startDate)