Compoze Software, Inc.

com.compoze.exchange.webdav.sql
Class FromClause


java.lang.Object

  |

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

        |

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

All Implemented Interfaces:
ISqlFragment, java.io.Serializable

public class FromClause
extends AbstractSqlFragment
implements ISqlFragment, 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 FromClause:

  FromClause from = new FromClause(new String[]
	    {
	    "/exchange/skip.ogrudnick/Inbox/",
	    "/exchange/skip.ogrudnick/Inbox/sub1/",
	    "/exchange/skip.ogrudnick/Inbox/sub2/"
	    }, IScope.SHALLOW_TRAVERSAL);

  System.out.println(from);
 

See Also:
Serialized Form

Constructor Summary
FromClause(java.lang.String sSource)
          Constructor.
FromClause(java.lang.String[] sources, int iScope)
          Constructor.
FromClause(java.lang.String sSource, int iScope)
          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

FromClause


public FromClause(java.lang.String sSource)
Constructor.
Parameters:
sSource - the URL of the source collection

FromClause


public FromClause(java.lang.String sSource,
                  int iScope)
Constructor.
Parameters:
sSource - the URL of the source collection
iScope - the scope of the search
See Also:
IScope

FromClause


public FromClause(java.lang.String[] sources,
                  int iScope)
Constructor.
Parameters:
sSource - an array of URLs of the source collections
iScope - the scope of the search
See Also:
IScope
Method Detail

toSQL


public java.lang.String toSQL()
Returns a string representation of the clause.
Specified by:
toSQL in interface ISqlFragment
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.