com.ibm.tspaces.query
Class OrQuery

java.lang.Object
  |
  +--com.ibm.tspaces.query.OrQuery

public class OrQuery
extends java.lang.Object
implements Query

Used to combine two queries with OR semantics This class extends the generic Query interface. An OrQuery object is specified at the client and passed to the server in a template tuple. At the server, it is transformed to a TSOrQuery object that is actually used for the query operation.

Author:
John Thomas
See Also:
Query, Serialized Form

Constructor Summary
OrQuery(Query lhs_, Query rhs_)
          Create a new OrQuery
 
Method Summary
 Query getLhs()
          access the lefthand side of an Or query
 Query getRhs()
          access the righthand side of an Or query
 java.lang.String toString()
          Display the Query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrQuery

public OrQuery(Query lhs_,
               Query rhs_)
Create a new OrQuery
Parameters:
lhs_ - The left-hand query
rhs_ - The right-hand query
Method Detail

getLhs

public Query getLhs()
access the lefthand side of an Or query

getRhs

public Query getRhs()
access the righthand side of an Or query

toString

public java.lang.String toString()
Display the Query
Overrides:
toString in class java.lang.Object