com.ibm.websphere.brb.query
Class AbstractStringNode

java.lang.Object
  extended bycom.ibm.websphere.brb.query.QueryNode
      extended bycom.ibm.websphere.brb.query.AttributeNode
          extended bycom.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 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

EQUAL

public static final int EQUAL
Find rules where the string attribute matches the specified text exactly.

See Also:
Constant Field Values

NOT_EQUAL

public static final int NOT_EQUAL
Find rules where the string attribute does not match the specified text.

See Also:
Constant Field Values

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.

See Also:
Constant Field Values

IS_NULL

public static final int IS_NULL
Find rules where the attribute is null.

See Also:
Constant Field Values

IS_NOT_NULL

public static final int IS_NOT_NULL
Find rules where the attribute is not null.

See Also:
Constant Field Values
Method Detail

buildWhereClause

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