com.ibm.websphere.brb.query
Class AbstractStringNode
java.lang.Object
|
+--com.ibm.websphere.brb.query.QueryNode
|
+--com.ibm.websphere.brb.query.AttributeNode
|
+--com.ibm.websphere.brb.query.AbstractStringNode
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BusinessIntentNode, ClassificationNode, DescriptionNode, JavaRuleImplementorNameNode, OriginalRequirementNode, RuleNameNode, UserDefinedDataNode
- public abstract class AbstractStringNode
- extends AttributeNode
A common interface for querying rule attributes that
represent a string. This class
contains several constants that define the type of queries
that can be performed. For example, you can search for rules with a
string attribute equal to the given value. To do so, use the constant
EQUAL
. You can search for strings that are
like the given value, are null, etc. See the constants defined below.
When using the constant LIKE
,
use the percentage character (%) to specify a wildcard and use the underscore
character (_) to specify a single character wildcard. These wildcard
characters follow SQL syntax.
- See Also:
- Serialized Form
Field Summary |
static int |
EQUAL
Find rules where the string attribute matches the specified text exactly. |
static int |
IS_NOT_NULL
Find rules where the attribute is not null. |
static int |
IS_NULL
Find rules where the attribute is null. |
static int |
LIKE
Find rules where the attribute is like the specified text. |
static int |
NOT_EQUAL
Find rules where the string attribute does not match the specified text. |
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 |
EQUAL
public static final int EQUAL
- Find rules where the string attribute matches the specified text exactly.
NOT_EQUAL
public static final int NOT_EQUAL
- Find rules where the string attribute does not match the specified text.
LIKE
public static final int LIKE
- Find rules where the attribute is like the specified text. The text
can contain wildcard characters. Use the percentage character (%) to
specify a wildcard and use the underscore character (_) to specify a
single character wildcard. These wildcard characters follow SQL syntax.
IS_NULL
public static final int IS_NULL
- Find rules where the attribute is null.
IS_NOT_NULL
public static final int IS_NOT_NULL
- Find rules where the attribute is not null.
buildWhereClause
public void buildWhereClause(java.lang.StringBuffer sb,
java.util.Vector boundAttributes)
- FOR IBM INTERNAL USE ONLY.