Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


oracle.ultrasearch.query
Class Or

java.lang.Object
  extended by oracle.ultrasearch.query.Or

All Implemented Interfaces:
Query

public class Or
extends java.lang.Object
implements Query

Combine two or more queries using logical OR.

Or is the logical complement of And.

Since:
9.0.2
See Also:
And

Constructor Summary
Or(Query[] terms)
          Combine several queries using the OR operator
Or(Query qry1, Query qry2)
          Combine two queries using the OR operator

 

Method Summary
 java.lang.String compile()
          compile into a query string.
 java.lang.String compileForCount()
          compile into a query string for counting hits.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Or

public Or(Query qry1,
          Query qry2)
Combine two queries using the OR operator
Parameters:
qry1 - a query, null allowed
qry2 - another query, null allowed

Or

public Or(Query[] terms)
Combine several queries using the OR operator
Parameters:
terms - an array of query objects, not null

Method Detail

compile

public java.lang.String compile()
compile into a query string.
Specified by:
compile in interface Query
Returns:
a query string representing this query.

compileForCount

public java.lang.String compileForCount()
compile into a query string for counting hits.
Specified by:
compileForCount in interface Query
Returns:
a query string representing this query.

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


Copyright © 2002,2007, Oracle. All Rights Reserved.