org.gcube.accounting.datamodel.query
Class QueryHelper

java.lang.Object
  extended by org.gcube.accounting.datamodel.query.QueryHelper

public class QueryHelper
extends Object


Constructor Summary
QueryHelper()
           
 
Method Summary
static Calendar getCalendar(Map<String,QueryClause> clauses, QueryField field)
           
static Calendar getCalendar(Map<String,QueryClause> clauses, String field)
           
static String getString(Map<String,QueryClause> clauses, QueryField field)
           
static Map<String,QueryClause> parseQuery(String query)
          Parse a string of the form "k1=v1&k2=v2&k3=v3..." and produces a Map with the pairs from the query
 
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

parseQuery

public static Map<String,QueryClause> parseQuery(String query)
                                          throws QueryFormatException
Parse a string of the form "k1=v1&k2=v2&k3=v3..." and produces a Map with the pairs from the query

Parameters:
query -
Returns:
Throws:
QueryFormatException

getCalendar

public static Calendar getCalendar(Map<String,QueryClause> clauses,
                                   QueryField field)

getCalendar

public static Calendar getCalendar(Map<String,QueryClause> clauses,
                                   String field)

getString

public static String getString(Map<String,QueryClause> clauses,
                               QueryField field)


Copyright © 2013. All Rights Reserved.