|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.brb.query.QueryNode
com.ibm.websphere.brb.query.DependentRulesNode
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
QueryNode
s by using an AndNode
or
an OrNode
.
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 |
public static final int CONTAINING
public static final int IN_FOLDER
public static final int IN_FOLDER_INCLUDE_SUBFOLDERS
public static final int IS_EMPTY
public static final int IS_NOT_EMPTY
Constructor Detail |
public DependentRulesNode(java.lang.String folderNameIn, java.lang.String ruleNameIn, int comparisonOp)
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.
comparisonOp
- The type of operation to perform.
java.lang.IllegalArgumentException
- if the searchText
or comparisonOp
is invalidMethod Detail |
public void buildWhereClause(java.lang.StringBuffer sb, java.util.Vector boundAttributes)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |