org.gcube.accounting.datamodel.query
Class QueryHelper
java.lang.Object
org.gcube.accounting.datamodel.query.QueryHelper
public class QueryHelper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryHelper
public QueryHelper()
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.