com.todoroo.andlib.sql
Class QueryTemplate

java.lang.Object
  extended by com.todoroo.andlib.sql.QueryTemplate

public final class QueryTemplate
extends java.lang.Object

Query Template returns a bunch of criteria that allows a query to be constructed

Author:
Tim Su

Constructor Summary
QueryTemplate()
           
 
Method Summary
 QueryTemplate groupBy(Field... groupBy)
           
 QueryTemplate having(Criterion criterion)
           
 QueryTemplate join(Join... join)
           
 QueryTemplate limit(int limitValue)
           
 QueryTemplate orderBy(Order... order)
           
 java.lang.String toString()
           
 QueryTemplate where(Criterion criterion)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryTemplate

public QueryTemplate()
Method Detail

join

public QueryTemplate join(Join... join)

where

public QueryTemplate where(Criterion criterion)

groupBy

public QueryTemplate groupBy(Field... groupBy)

orderBy

public QueryTemplate orderBy(Order... order)

toString

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

having

public QueryTemplate having(Criterion criterion)

limit

public QueryTemplate limit(int limitValue)