Oracle Ultra Search Java API Reference
10g (9.0.4)

B10492-01

oracle.ultrasearch.query
Class And

java.lang.Object
  |
  +--oracle.ultrasearch.query.And
All Implemented Interfaces:
Query

public class And
extends java.lang.Object
implements Query

Combine two or more queries using logical AND.

And is the logical complement of Or.

Since:
9.0.2
See Also:
Or

Constructor Summary
And(Query[] terms)
          Combine several queries using the AND operator
And(Query qry1, Query qry2)
          Combine two queries using the AND 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

And

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

And

public And(Query qry1,
Query qry2)
Combine two queries using the AND operator
Parameters:
qry1 - a query, null allowed
qry2 - another query, null allowed
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.

Oracle Ultra Search Java API Reference
10g (9.0.4)

B10492-01

Copyright © 2003, Oracle. All Rights Reserved.