Compoze Software, Inc.

com.compoze.exchange.webdav.sql
Class GroupByClause


java.lang.Object

  |

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

        |

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

All Implemented Interfaces:
ISqlFragment, java.io.Serializable

public class GroupByClause
extends AbstractSqlFragment
implements ISqlFragment, java.io.Serializable

This class represents the Structured Query Language (SQL) "GROUP BY" clause. The "GROUP BY" clause organizes the results according one or more properties.

The following example illustrates the use of GroupByClause:

  GroupByClause groupBy = new GroupByClause(new String[]
    	{
   	"DAV:href",
	"DAV:contentclass"
    	});

  System.out.println(groupBy);
 

See Also:
Serialized Form

Constructor Summary
GroupByClause(java.lang.String sProperty)
          Constructor.
GroupByClause(java.lang.String[] properties)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Main.
 java.lang.String toSQL()
          Returns a string representation of the object.
 
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

GroupByClause


public GroupByClause(java.lang.String sProperty)
Constructor.

GroupByClause


public GroupByClause(java.lang.String[] properties)
Constructor.
Method Detail

toSQL


public java.lang.String toSQL()
Returns a string representation of the object.
Specified by:
toSQL in interface ISqlFragment
Overrides:
toSQL in class AbstractSqlFragment
Returns:
the string representation of the object

main


public static void main(java.lang.String[] args)
Main.
This is the exerciser.
Parameters:
args - array of arguments

Compoze Software, Inc.

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