com.ibm.commerce.negotiation.operation
Class RuleInterpreterFactory

java.lang.Object
  |
  +--com.ibm.commerce.negotiation.operation.RuleInterpreterFactory

public class RuleInterpreterFactory
extends java.lang.Object

This class manufactures RuleInterpreter Objects dynamically.


Constructor Summary
RuleInterpreterFactory()
          RuleInterpreterFactory constructor comment.
 
Method Summary
static RuleInterpreter createRuleInterpreter(ControlRuleAccessBean rule)
          Create a RuleInterpreter Object based on the given control rule access bean..
static RuleInterpreter createRuleInterpreter(ControlRuleDataBean bean)
          Create a RuleInterpreter Object based on the given databean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleInterpreterFactory

public RuleInterpreterFactory()
RuleInterpreterFactory constructor comment.
Method Detail

createRuleInterpreter

public static RuleInterpreter createRuleInterpreter(ControlRuleAccessBean rule)
                                             throws java.lang.Exception
Create a RuleInterpreter Object based on the given control rule access bean.. This method should be used when you want to retrieve a ControlRuleDataBean from database knowing its id.
Parameters:
rule - com.ibm.commerce.negotiation.objects.ControlRuleAccessBean
Returns:
com.ibm.commerce.negotiation.operation.RuleInterpreter

createRuleInterpreter

public static RuleInterpreter createRuleInterpreter(ControlRuleDataBean bean)
                                             throws java.lang.Exception
Create a RuleInterpreter Object based on the given databean. This databean should already has data in it. This method should be used when create or modify a ControlRuleDataBeean to the database.
Parameters:
bean - com.ibm.commerce.negotiation.objects.ControlRuleDataBean
Returns:
com.ibm.commerce.negotiation.operation.RuleInterpreter