Class GeneratedDroolsKIEBase

    • Field Detail

      • NAME

        public static final java.lang.String NAME
        Qualifier of the DroolsKIEBase.name attribute
        See Also:
        Constant Field Values
      • EQUALITYBEHAVIOR

        public static final java.lang.String EQUALITYBEHAVIOR
        Qualifier of the DroolsKIEBase.equalityBehavior attribute
        See Also:
        Constant Field Values
      • EVENTPROCESSINGMODE

        public static final java.lang.String EVENTPROCESSINGMODE
        Qualifier of the DroolsKIEBase.eventProcessingMode attribute
        See Also:
        Constant Field Values
      • DEFAULTKIESESSION

        public static final java.lang.String DEFAULTKIESESSION
        Qualifier of the DroolsKIEBase.defaultKIESession attribute
        See Also:
        Constant Field Values
      • KIEMODULE

        public static final java.lang.String KIEMODULE
        Qualifier of the DroolsKIEBase.kieModule attribute
        See Also:
        Constant Field Values
      • KIESESSIONS

        public static final java.lang.String KIESESSIONS
        Qualifier of the DroolsKIEBase.kieSessions attribute
        See Also:
        Constant Field Values
      • RULES

        public static final java.lang.String RULES
        Qualifier of the DroolsKIEBase.rules attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedDroolsKIEBase

        public GeneratedDroolsKIEBase()
    • Method Detail

      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getDefaultKIESession

        public DroolsKIESession getDefaultKIESession​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.defaultKIESession attribute.
        Returns:
        the defaultKIESession - Default DroolsKIESession for DroolsKIEBase.
      • getDefaultKIESession

        public DroolsKIESession getDefaultKIESession()
        Generated method - Getter of the DroolsKIEBase.defaultKIESession attribute.
        Returns:
        the defaultKIESession - Default DroolsKIESession for DroolsKIEBase.
      • setDefaultKIESession

        public void setDefaultKIESession​(SessionContext ctx,
                                         DroolsKIESession value)
        Generated method - Setter of the DroolsKIEBase.defaultKIESession attribute.
        Parameters:
        value - the defaultKIESession - Default DroolsKIESession for DroolsKIEBase.
      • setDefaultKIESession

        public void setDefaultKIESession​(DroolsKIESession value)
        Generated method - Setter of the DroolsKIEBase.defaultKIESession attribute.
        Parameters:
        value - the defaultKIESession - Default DroolsKIESession for DroolsKIEBase.
      • getEqualityBehavior

        public EnumerationValue getEqualityBehavior​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.equalityBehavior attribute.
        Returns:
        the equalityBehavior
      • getEqualityBehavior

        public EnumerationValue getEqualityBehavior()
        Generated method - Getter of the DroolsKIEBase.equalityBehavior attribute.
        Returns:
        the equalityBehavior
      • setEqualityBehavior

        public void setEqualityBehavior​(SessionContext ctx,
                                        EnumerationValue value)
        Generated method - Setter of the DroolsKIEBase.equalityBehavior attribute.
        Parameters:
        value - the equalityBehavior
      • setEqualityBehavior

        public void setEqualityBehavior​(EnumerationValue value)
        Generated method - Setter of the DroolsKIEBase.equalityBehavior attribute.
        Parameters:
        value - the equalityBehavior
      • getEventProcessingMode

        public EnumerationValue getEventProcessingMode​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.eventProcessingMode attribute.
        Returns:
        the eventProcessingMode
      • getEventProcessingMode

        public EnumerationValue getEventProcessingMode()
        Generated method - Getter of the DroolsKIEBase.eventProcessingMode attribute.
        Returns:
        the eventProcessingMode
      • setEventProcessingMode

        public void setEventProcessingMode​(SessionContext ctx,
                                           EnumerationValue value)
        Generated method - Setter of the DroolsKIEBase.eventProcessingMode attribute.
        Parameters:
        value - the eventProcessingMode
      • setEventProcessingMode

        public void setEventProcessingMode​(EnumerationValue value)
        Generated method - Setter of the DroolsKIEBase.eventProcessingMode attribute.
        Parameters:
        value - the eventProcessingMode
      • getKieModule

        public DroolsKIEModule getKieModule​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.kieModule attribute.
        Returns:
        the kieModule
      • getKieModule

        public DroolsKIEModule getKieModule()
        Generated method - Getter of the DroolsKIEBase.kieModule attribute.
        Returns:
        the kieModule
      • setKieModule

        protected void setKieModule​(SessionContext ctx,
                                    DroolsKIEModule value)
        Generated method - Setter of the DroolsKIEBase.kieModule attribute.
        Parameters:
        value - the kieModule
      • setKieModule

        protected void setKieModule​(DroolsKIEModule value)
        Generated method - Setter of the DroolsKIEBase.kieModule attribute.
        Parameters:
        value - the kieModule
      • getKieSessions

        public java.util.Collection<DroolsKIESession> getKieSessions​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.kieSessions attribute.
        Returns:
        the kieSessions
      • getKieSessions

        public java.util.Collection<DroolsKIESession> getKieSessions()
        Generated method - Getter of the DroolsKIEBase.kieSessions attribute.
        Returns:
        the kieSessions
      • setKieSessions

        public void setKieSessions​(SessionContext ctx,
                                   java.util.Collection<DroolsKIESession> value)
        Generated method - Setter of the DroolsKIEBase.kieSessions attribute.
        Parameters:
        value - the kieSessions
      • setKieSessions

        public void setKieSessions​(java.util.Collection<DroolsKIESession> value)
        Generated method - Setter of the DroolsKIEBase.kieSessions attribute.
        Parameters:
        value - the kieSessions
      • addToKieSessions

        public void addToKieSessions​(SessionContext ctx,
                                     DroolsKIESession value)
        Generated method - Adds value to kieSessions.
        Parameters:
        value - the item to add to kieSessions
      • addToKieSessions

        public void addToKieSessions​(DroolsKIESession value)
        Generated method - Adds value to kieSessions.
        Parameters:
        value - the item to add to kieSessions
      • removeFromKieSessions

        public void removeFromKieSessions​(SessionContext ctx,
                                          DroolsKIESession value)
        Generated method - Removes value from kieSessions.
        Parameters:
        value - the item to remove from kieSessions
      • removeFromKieSessions

        public void removeFromKieSessions​(DroolsKIESession value)
        Generated method - Removes value from kieSessions.
        Parameters:
        value - the item to remove from kieSessions
      • getName

        public java.lang.String getName​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.name attribute.
        Returns:
        the name
      • getName

        public java.lang.String getName()
        Generated method - Getter of the DroolsKIEBase.name attribute.
        Returns:
        the name
      • setName

        protected void setName​(SessionContext ctx,
                               java.lang.String value)
        Generated method - Setter of the DroolsKIEBase.name attribute.
        Parameters:
        value - the name
      • setName

        protected void setName​(java.lang.String value)
        Generated method - Setter of the DroolsKIEBase.name attribute.
        Parameters:
        value - the name
      • getRules

        public java.util.Set<DroolsRule> getRules​(SessionContext ctx)
        Generated method - Getter of the DroolsKIEBase.rules attribute.
        Returns:
        the rules
      • getRules

        public java.util.Set<DroolsRule> getRules()
        Generated method - Getter of the DroolsKIEBase.rules attribute.
        Returns:
        the rules
      • setRules

        public void setRules​(SessionContext ctx,
                             java.util.Set<DroolsRule> value)
        Generated method - Setter of the DroolsKIEBase.rules attribute.
        Parameters:
        value - the rules
      • setRules

        public void setRules​(java.util.Set<DroolsRule> value)
        Generated method - Setter of the DroolsKIEBase.rules attribute.
        Parameters:
        value - the rules
      • addToRules

        public void addToRules​(SessionContext ctx,
                               DroolsRule value)
        Generated method - Adds value to rules.
        Parameters:
        value - the item to add to rules
      • addToRules

        public void addToRules​(DroolsRule value)
        Generated method - Adds value to rules.
        Parameters:
        value - the item to add to rules
      • removeFromRules

        public void removeFromRules​(SessionContext ctx,
                                    DroolsRule value)
        Generated method - Removes value from rules.
        Parameters:
        value - the item to remove from rules
      • removeFromRules

        public void removeFromRules​(DroolsRule value)
        Generated method - Removes value from rules.
        Parameters:
        value - the item to remove from rules