Compoze Software, Inc.

com.compoze.exchange.webdav.sql
Class WhereClause


java.lang.Object

  |

  +--com.compoze.exchange.webdav.sql.AbstractSqlFragment

        |

        +--com.compoze.exchange.webdav.sql.WhereClause

All Implemented Interfaces:
ISqlFragment, java.io.Serializable

public class WhereClause
extends AbstractSqlFragment
implements java.io.Serializable

This class represents the Structured Query Language (SQL) "FROM" Clause. The "FROM" clause indicates where the search takes place.

The following example illustrates the use of WhereClause:

  Condition cond = Condition.create(new GreaterThanOperator("urn:schemas:contacts:givenName", "Skip"), true);
  cond.add(new GreaterThanOperator("urn:schemas:contacts:givenName", "Skippy"), true);
  WhereClause where = new WhereClause(cond);

  System.out.println(where);
 

See Also:
Serialized Form

Constructor Summary
WhereClause(Condition condition)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Method description.
 java.lang.String toSQL()
          Returns a string representation of the clause.
 
Methods inherited from class com.compoze.exchange.webdav.sql.AbstractSqlFragment
escape, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhereClause


public WhereClause(Condition condition)
Constructor.
Parameters:
sSource - the URL of the source collection
Method Detail

toSQL


public java.lang.String toSQL()
Returns a string representation of the clause.
Overrides:
toSQL in class AbstractSqlFragment
Returns:
the string representation of the clause.

main


public static void main(java.lang.String[] args)
Method description.

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.