Class OfferRuleImpl

java.lang.Object
org.broadleafcommerce.core.offer.domain.OfferRuleImpl
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<OfferRule>, org.broadleafcommerce.common.rule.SimpleRule, OfferRule

@Entity public class OfferRuleImpl extends Object implements OfferRule
Author:
jfischer
See Also:
  • Field Details

    • id

      protected Long id
    • matchRule

      protected String matchRule
  • Constructor Details

    • OfferRuleImpl

      public OfferRuleImpl()
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface OfferRule
    • setId

      public void setId(Long id)
      Specified by:
      setId in interface OfferRule
    • getMatchRule

      public String getMatchRule()
      Specified by:
      getMatchRule in interface OfferRule
      Specified by:
      getMatchRule in interface org.broadleafcommerce.common.rule.SimpleRule
    • setMatchRule

      public void setMatchRule(String matchRule)
      Specified by:
      setMatchRule in interface OfferRule
      Specified by:
      setMatchRule in interface org.broadleafcommerce.common.rule.SimpleRule
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • createOrRetrieveCopyInstance

      public <G extends OfferRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
      Specified by:
      createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<OfferRule>
      Throws:
      CloneNotSupportedException