org.apache.ojb.broker.query
Class SearchFilter.SearchBaseLeaf

java.lang.Object
  extended byorg.apache.ojb.broker.query.SearchFilter.SearchBase
      extended byorg.apache.ojb.broker.query.SearchFilter.SearchBaseLeaf
Enclosing class:
SearchFilter

protected class SearchFilter.SearchBaseLeaf
extends SearchFilter.SearchBase

SearchBaseLeaf holds a leaf of the search tree This class holds an element name, and a vector of possible matches. It searches for an element of the given name that matches at least one of the strings in the array (IN), or does not match any (NOT_IN)


Field Summary
 java.lang.String elementName
           
 java.lang.String[] matches
           
 
Fields inherited from class org.apache.ojb.broker.query.SearchFilter.SearchBase
oper
 
Constructor Summary
(package private) SearchFilter.SearchBaseLeaf(java.lang.String ElementName, int oper, java.lang.String match)
          Constructor for only one value.
(package private) SearchFilter.SearchBaseLeaf(java.lang.String ElementName, int oper, java.lang.String[] matches)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementName

public java.lang.String elementName

matches

public java.lang.String[] matches
Constructor Detail

SearchFilter.SearchBaseLeaf

SearchFilter.SearchBaseLeaf(java.lang.String ElementName,
                            int oper,
                            java.lang.String[] matches)
Constructor.

Parameters:
ElementName - is the name of the element to be tested
oper - is the operator (IN or NOT_IN) to be used for the comparison
matches - is an array of String values to be matched

SearchFilter.SearchBaseLeaf

SearchFilter.SearchBaseLeaf(java.lang.String ElementName,
                            int oper,
                            java.lang.String match)
Constructor for only one value.

Parameters:
ElementName - is the name of the element to be tested
oper - is the operator (IN or NOT_IN) to be used for the comparison
match - is a string value to be matched


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14