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.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RuleInterpreterFactory

        public RuleInterpreterFactory()
        RuleInterpreterFactory constructor comment.
    • Method Detail

      • createRuleInterpreter

        public static RuleInterpreter createRuleInterpreter(ControlRuleDataBean bean)
                                                     throws java.lang.Exception
        Creates a RuleInterpreter Object based on the given data bean. 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
        Throws:
        java.lang.Exception
      • createRuleInterpreter

        public static RuleInterpreter createRuleInterpreter(ControlRuleAccessBean rule)
                                                     throws java.lang.Exception
        Creates 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
        Throws:
        java.lang.Exception