Class GeneratedDroolsKIEBase

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
DroolsKIEBase

public abstract class GeneratedDroolsKIEBase extends GenericItem
Generated class for type DroolsKIEBase.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedDroolsKIEBase

      public GeneratedDroolsKIEBase()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • 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 Collection<DroolsKIESession> getKieSessions(SessionContext ctx)
      Generated method - Getter of the DroolsKIEBase.kieSessions attribute.
      Returns:
      the kieSessions
    • getKieSessions

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

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

      public void setKieSessions(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 String getName(SessionContext ctx)
      Generated method - Getter of the DroolsKIEBase.name attribute.
      Returns:
      the name
    • getName

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

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

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

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

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

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

      public void setRules(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