Class BaseSale

    • Constructor Detail

      • BaseSale

        public BaseSale()
        Constructs a new empty instance.
      • BaseSale

        protected BaseSale​(boolean noInit)
        Constructs a new empty instance.
      • BaseSale

        public BaseSale​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • BaseSale

        public BaseSale​(BaseSale src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getName

        public String getName()
      • getNumberSold

        public Double getNumberSold()
      • getRevenueSold

        public Long getRevenueSold()
      • getNumNonRevenueSold

        public Double getNumNonRevenueSold()
      • getPriceSold

        public Double getPriceSold()
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullNumberSold

        public boolean isNotNullNumberSold()
        Checks whether the 'numberSold' field is set and is not null
      • isNotNullRevenueSold

        public boolean isNotNullRevenueSold()
        Checks whether the 'revenueSold' field is set and is not null
      • isNotNullNumNonRevenueSold

        public boolean isNotNullNumNonRevenueSold()
        Checks whether the 'numNonRevenueSold' field is set and is not null
      • isNotNullPriceSold

        public boolean isNotNullPriceSold()
        Checks whether the 'priceSold' field is set and is not null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasNumberSold

        public boolean hasNumberSold()
        Checks whether the 'numberSold' field has been set, however the value could be null
      • hasRevenueSold

        public boolean hasRevenueSold()
        Checks whether the 'revenueSold' field has been set, however the value could be null
      • hasNumNonRevenueSold

        public boolean hasNumNonRevenueSold()
        Checks whether the 'numNonRevenueSold' field has been set, however the value could be null
      • hasPriceSold

        public boolean hasPriceSold()
        Checks whether the 'priceSold' field has been set, however the value could be null
      • setName

        public BaseSale setName​(String name)
        Sets the field 'name'.
      • setNumberSold

        public BaseSale setNumberSold​(Double numberSold)
        Sets the field 'numberSold'.
      • setRevenueSold

        public BaseSale setRevenueSold​(Long revenueSold)
        Sets the field 'revenueSold'.
      • setNumNonRevenueSold

        public BaseSale setNumNonRevenueSold​(Double numNonRevenueSold)
        Sets the field 'numNonRevenueSold'.
      • setPriceSold

        public BaseSale setPriceSold​(Double priceSold)
        Sets the field 'priceSold'.
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearNumberSold

        public void clearNumberSold()
        Clears the 'numberSold' field, the 'has' method for this field will now return false
      • clearRevenueSold

        public void clearRevenueSold()
        Clears the 'revenueSold' field, the 'has' method for this field will now return false
      • clearNumNonRevenueSold

        public void clearNumNonRevenueSold()
        Clears the 'numNonRevenueSold' field, the 'has' method for this field will now return false
      • clearPriceSold

        public void clearPriceSold()
        Clears the 'priceSold' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public BaseSale copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(BaseSale src)
        Copy all the changed fields from the given source to this instance.