com.ibm.websphere.brb.query
Class DependentRulesNode

java.lang.Object
  extended bycom.ibm.websphere.brb.query.QueryNode
      extended bycom.ibm.websphere.brb.query.DependentRulesNode
All Implemented Interfaces:
java.io.Serializable

public class DependentRulesNode
extends QueryNode

Allows the dependentRules attribute of a rule to be queried. A DependentRulesNode is given a folder name and rule name for which to search and a constant describing the comparison operation to perform. The following example finds all rules with a dependent rule of "com/acme/RuleA":

    IRuleFolder root = RuleMgmtHelper.getRootFolder(); 
    DependentRulesNode node = new DependentRulesNode("com/acme", "RuleA", DependentRulesNode.CONTAINING);
    Collection collection = root.findRules(node, true, IRule.TYPE_REFERENCE);
 
These nodes can be combined with other QueryNodes by using an AndNode or an OrNode.

See Also:
Serialized Form

Field Summary
static int CONTAINING
          Find rules containing the given dependent rule name.
static int IN_FOLDER
          Find rules that contain dependent rules where the dependent rules are in the given folder (not including subfolders).
static int IN_FOLDER_INCLUDE_SUBFOLDERS
          Find rules that contain dependent rules where the dependent rules are in the given folder or subfolders.
static int IS_EMPTY
          Find rules with no dependent rules.
static int IS_NOT_EMPTY
          Find rules with dependent rules.
 
Constructor Summary
DependentRulesNode(java.lang.String folderNameIn, java.lang.String ruleNameIn, int comparisonOp)
          Constructs a DependentRulesNode that searches the dependent rules field for text matching the given folder and rule name using the given comparison operator.
 
Method Summary
 void buildWhereClause(java.lang.StringBuffer sb, java.util.Vector boundAttributes)
          FOR IBM INTERNAL USE ONLY.
 
Methods inherited from class com.ibm.websphere.brb.query.QueryNode
getWhereClause, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTAINING

public static final int CONTAINING
Find rules containing the given dependent rule name.

See Also:
Constant Field Values

IN_FOLDER

public static final int IN_FOLDER
Find rules that contain dependent rules where the dependent rules are in the given folder (not including subfolders).

See Also:
Constant Field Values

IN_FOLDER_INCLUDE_SUBFOLDERS

public static final int IN_FOLDER_INCLUDE_SUBFOLDERS
Find rules that contain dependent rules where the dependent rules are in the given folder or subfolders.

See Also:
Constant Field Values

IS_EMPTY

public static final int IS_EMPTY
Find rules with no dependent rules.

See Also:
Constant Field Values

IS_NOT_EMPTY

public static final int IS_NOT_EMPTY
Find rules with dependent rules.

See Also:
Constant Field Values
Constructor Detail

DependentRulesNode

public DependentRulesNode(java.lang.String folderNameIn,
                          java.lang.String ruleNameIn,
                          int comparisonOp)
Constructs a DependentRulesNode that searches the dependent rules field for text matching the given folder and rule name using the given comparison operator. Unless the operator is IS_EMPTY or IS_NOT_EMPTY, the searchText must be non-null. A java.lang.IllegalArgumentException is thrown if this condition is not met.

Parameters:
comparisonOp - The type of operation to perform.
Throws:
java.lang.IllegalArgumentException - if the searchText or comparisonOp is invalid
Method Detail

buildWhereClause

public void buildWhereClause(java.lang.StringBuffer sb,
                             java.util.Vector boundAttributes)
FOR IBM INTERNAL USE ONLY.