com.elasticpath.domain.rules.impl
Class AppliedRuleImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.rules.impl.AppliedRuleImpl
All Implemented Interfaces:
EpDomain, Persistence, AppliedRule, java.io.Serializable

public class AppliedRuleImpl
extends AbstractPersistenceImpl
implements AppliedRule

Represents a rule that has been applied to an order.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
serialVersionUID
 
Constructor Summary
AppliedRuleImpl()
           
 
Method Summary
 java.lang.String getRuleCode()
          Get the rule engine code for the applied rule.
 java.lang.String getRuleName()
          Get the name of the applied rule.
 long getRuleUid()
          Get the UID of the applied rule.
 void initialize(Rule rule)
          Initialize the AppliedRule from the given Rule.
 void setRuleCode(java.lang.String ruleCode)
          Set the rule engine code for the applied rule.
 void setRuleName(java.lang.String ruleName)
          Set the name of the applied rule.
 void setRuleUid(long ruleUid)
          Set the uid of the applied rule.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Constructor Detail

AppliedRuleImpl

public AppliedRuleImpl()
Method Detail

getRuleCode

public java.lang.String getRuleCode()
Get the rule engine code for the applied rule.

Specified by:
getRuleCode in interface AppliedRule
Returns:
the rule engine code.

getRuleName

public java.lang.String getRuleName()
Get the name of the applied rule.

Specified by:
getRuleName in interface AppliedRule
Returns:
the name of the applied rule

getRuleUid

public long getRuleUid()
Get the UID of the applied rule.

Specified by:
getRuleUid in interface AppliedRule
Returns:
the UID

initialize

public void initialize(Rule rule)
Initialize the AppliedRule from the given Rule.

Specified by:
initialize in interface AppliedRule
Parameters:
rule - the Rule

setRuleCode

public void setRuleCode(java.lang.String ruleCode)
Set the rule engine code for the applied rule.

Specified by:
setRuleCode in interface AppliedRule
Parameters:
ruleCode - the rule code.

setRuleName

public void setRuleName(java.lang.String ruleName)
Set the name of the applied rule.

Specified by:
setRuleName in interface AppliedRule
Parameters:
ruleName - the rule name

setRuleUid

public void setRuleUid(long ruleUid)
Set the uid of the applied rule.

Specified by:
setRuleUid in interface AppliedRule
Parameters:
ruleUid - the UID