com.bea.alcs.domain.rules.impl
Class CategoryExceptionImpl

java.lang.Object
  extended by com.bea.alcs.domain.impl.AbstractEpDomainImpl
      extended by com.bea.alcs.domain.impl.AbstractPersistenceImpl
          extended by com.bea.alcs.domain.impl.AbstractValueObjectImpl
              extended by com.bea.alcs.domain.rules.impl.AbstractRuleExceptionImpl
                  extended by com.bea.alcs.domain.rules.impl.CategoryExceptionImpl
All Implemented Interfaces:
EpDomain, Persistence, RuleException, ValueObject, java.io.Serializable

public class CategoryExceptionImpl
extends AbstractRuleExceptionImpl
implements RuleException

Rule exception that excludes a category to be qualified for a rule condition or a rule action. Requires parameter with key RuleParameter.CATEGORY_ID_KEY to specify the category.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from class com.bea.alcs.domain.rules.impl.AbstractRuleExceptionImpl
TABLE_NAME
 
Fields inherited from class com.bea.alcs.domain.impl.AbstractPersistenceImpl
DECIMAL_PRECISION, DECIMAL_SCALE
 
Constructor Summary
CategoryExceptionImpl()
           
 
Method Summary
 boolean appliesInScenario(int scenarioId)
          Check if this RuleException is valid in the specified scenario.
 RuleExceptionType getExceptionType()
          Returns the RuleExceptionType associated with this RuleException subclass.
 java.lang.String[] getParameterKeys()
          Return the array of the required parameter keys for the rule.
 java.lang.String getRuleCode()
          Dummy implementation here since a rule exception will be part of a rule condition or rule action.
 
Methods inherited from class com.bea.alcs.domain.rules.impl.AbstractRuleExceptionImpl
addParameter, getParameters, getParamValue, getType, getUidPk, setDefaultValues, setParameters, setType, setUidPk, validate
 
Methods inherited from class com.bea.alcs.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, isPersistent
 
Methods inherited from class com.bea.alcs.domain.impl.AbstractEpDomainImpl
getBooleanHashCode, getElasticPath, getObjectHashCode, getUtility, setElasticPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bea.alcs.domain.rules.RuleException
addParameter, getParameters, getParamValue, getType, setParameters, setType, validate
 
Methods inherited from interface com.bea.alcs.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setUidPk
 
Methods inherited from interface com.bea.alcs.domain.EpDomain
getElasticPath, getUtility, setDefaultValues, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

CategoryExceptionImpl

public CategoryExceptionImpl()
Method Detail

getExceptionType

public RuleExceptionType getExceptionType()
Returns the RuleExceptionType associated with this RuleException subclass. The RuleExceptionType's property key must match this class' discriminator-value and the spring context bean id for this RuleException implementation.

Specified by:
getExceptionType in interface RuleException
Overrides:
getExceptionType in class AbstractRuleExceptionImpl
Returns:
the RuleExceptionType associated with this RuleException subclass.

appliesInScenario

public boolean appliesInScenario(int scenarioId)
Check if this RuleException is valid in the specified scenario.

Specified by:
appliesInScenario in interface RuleException
Overrides:
appliesInScenario in class AbstractRuleExceptionImpl
Parameters:
scenarioId - the Id of the scenario to check (defined in RuleScenarios)
Returns:
true if the RuleException is applicable in the given scenario

getRuleCode

public java.lang.String getRuleCode()
                             throws EpDomainException
Dummy implementation here since a rule exception will be part of a rule condition or rule action.

Returns:
the rule code.
Throws:
EpDomainException - if the object model is not well formed

getParameterKeys

public java.lang.String[] getParameterKeys()
Return the array of the required parameter keys for the rule.

Specified by:
getParameterKeys in interface RuleException
Overrides:
getParameterKeys in class AbstractRuleExceptionImpl
Returns:
an array of String of the required parameter keys for the rule.