|
|||||||||||
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.AttributeNode
com.ibm.websphere.brb.query.FiringLocationNode
Allows the firingLocation
attribute of a rule to be queried.
A FiringLocationNode
is given an integer that indicates
whether to search for rules fired locally, remotely, etc. These constants
are defined in IRule
. A constant
that defines how to query the field (equal or not equal) is also passed
when creating a FiringLocationNode.
The following example finds rules fired locally:
IRuleFolder root = RuleMgmtHelper.getRootFolder(); FiringLocationNode node = new FiringLocationNode(IRule.FIRE_LOCAL); Collection collection = root.findRules(node, true, IRule.TYPE_REFERENCE, FiringLocationNode.EQUAL);These nodes can be combined with other
QueryNode
s by using an AndNode
or
an OrNode
.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Deprecated. |
static int |
EQUAL
Deprecated. Find rules where the location attribute matches the specified location. |
static int |
NOT_EQUAL
Deprecated. Find rules where the location attribute does not match the specified location. |
Constructor Summary | |
---|---|
FiringLocationNode(int locationIn,
int operationIn)
Deprecated. Constructs a FiringLocationNode that searches
the firing location field for rules that are fired in the
given location 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 |
public static final java.lang.String COPYRIGHT
public static final int EQUAL
public static final int NOT_EQUAL
Constructor Detail |
public FiringLocationNode(int locationIn, int operationIn)
FiringLocationNode
that searches
the firing location field for rules that are fired in the
given location using the given comparison operator.
The constants for the locationIn
are defined in
IRule
. The constants
for the operationIn
are defined in this class.
locationIn
- search for rules fired in this locationoperationIn
- the type of comparison to perform
java.lang.IllegalArgumentException
- if the given firing location is not validMethod 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 |