com.scooterframework.orm.activerecord
Class QueryHelper

java.lang.Object
  extended by com.scooterframework.orm.activerecord.QueryHelper

public class QueryHelper
extends java.lang.Object

QueryHelper class provides helper methods for query construction.


Constructor Summary
QueryHelper()
           
 
Method Summary
static java.lang.String getAllSelectQueryClauses(java.util.Map<java.lang.String,java.lang.String> options)
          Returns a query clause for SELECT statement by constructing a clause which consists of GROUP BY, HAVING and ORDER BY clauses if there is any as specified in the options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryHelper

public QueryHelper()
Method Detail

getAllSelectQueryClauses

public static java.lang.String getAllSelectQueryClauses(java.util.Map<java.lang.String,java.lang.String> options)
Returns a query clause for SELECT statement by constructing a clause which consists of GROUP BY, HAVING and ORDER BY clauses if there is any as specified in the options.

Parameters:
options -
Returns:
a SQL fragment