com.ibm.websphere.brb.query
Class ReadyNode

java.lang.Object
  |
  +--com.ibm.websphere.brb.query.QueryNode
        |
        +--com.ibm.websphere.brb.query.AttributeNode
              |
              +--com.ibm.websphere.brb.query.ReadyNode
All Implemented Interfaces:
java.io.Serializable

public class ReadyNode
extends AttributeNode

Allows the ready attribute of a rule to be queried. A ReadyNode is given a boolean indicating whether to find rules that are ready (true) or find rules that are not ready (false). The following example finds all rules that are ready:

    IRuleFolder root = RuleMgmtHelper.getRootFolder();
    ReadyNode node = new ReadyNode(true);
    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

Constructor Summary
ReadyNode(boolean readyIn)
          Constructs a ReadyNode that searches the readyIn field either for rules that are ready (true) or not ready (false).
 
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
 

Constructor Detail

ReadyNode

public ReadyNode(boolean readyIn)
Constructs a ReadyNode that searches the readyIn field either for rules that are ready (true) or not ready (false).
Parameters:
readyIn - indicates whether to search for rules that are ready versus not ready
Method Detail

buildWhereClause

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