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

Deprecated. Use the new WebSphere Process Server Business Rule function.

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
          Deprecated. Find rules containing the given dependent rule name.
static java.lang.String COPYRIGHT
          Deprecated.  
static int IN_FOLDER
          Deprecated. Find rules that contain dependent rules where the dependent rules are in the given folder (not including subfolders).
static int IN_FOLDER_INCLUDE_SUBFOLDERS
          Deprecated. Find rules that contain dependent rules where the dependent rules are in the given folder or subfolders.
static int IS_EMPTY
          Deprecated. Find rules with no dependent rules.
static int IS_NOT_EMPTY
          Deprecated. Find rules with dependent rules.
 
Constructor Summary
DependentRulesNode(java.lang.String folderNameIn, java.lang.String ruleNameIn, int comparisonOp)
          Deprecated. 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)
          Deprecated. 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

COPYRIGHT

public static final java.lang.String COPYRIGHT
Deprecated. 
See Also:
Constant Field Values

CONTAINING

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

See Also:
Constant Field Values

IN_FOLDER

public static final int IN_FOLDER
Deprecated. 
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
Deprecated. 
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
Deprecated. 
Find rules with no dependent rules.

See Also:
Constant Field Values

IS_NOT_EMPTY

public static final int IS_NOT_EMPTY
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
FOR IBM INTERNAL USE ONLY.