com.ibm.websphere.brb.query
Class FiringParametersNode
java.lang.Object
com.ibm.websphere.brb.query.QueryNode
com.ibm.websphere.brb.query.AttributeNode
com.ibm.websphere.brb.query.FiringParametersNode
- All Implemented Interfaces:
- java.io.Serializable
- public class FiringParametersNode
- extends AttributeNode
Allows the firingParameters
attribute of a rule to be queried.
A FiringParametersNode
is given an integer that indicates
the type of query to perform. You can find rules with null firing
parameters (IS_NULL) or with non-null firing parameters (IS_NOT_NULL).
Rules with null firing parameters means that the firing parameters from
the trigger point will be used.
The following example finds rules with null firing parameters:
IRuleFolder root = RuleMgmtHelper.getRootFolder();
FiringParametersNode node = new FiringParametersNode(FiringParametersNode.IS_NULL);
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
.
- See Also:
- Serialized Form
Field Summary |
static int |
IS_NOT_NULL
Find rules where the firing parameters are not null. |
static int |
IS_NULL
Find rules where the firing parameters are null. |
Constructor Summary |
FiringParametersNode(int operationIn)
Constructs a FiringParametersNode that searches
the firingParameters field of rules with 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IS_NULL
public static final int IS_NULL
- Find rules where the firing parameters are null.
- See Also:
- Constant Field Values
IS_NOT_NULL
public static final int IS_NOT_NULL
- Find rules where the firing parameters are not null.
- See Also:
- Constant Field Values
FiringParametersNode
public FiringParametersNode(int operationIn)
- Constructs a
FiringParametersNode
that searches
the firingParameters
field of rules with the
given comparison operator. The constants
for the operationIn
are defined in this class.
- Parameters:
operationIn
- the type of comparison to perform
buildWhereClause
public void buildWhereClause(java.lang.StringBuffer sb,
java.util.Vector boundAttributes)
- FOR IBM INTERNAL USE ONLY.