de.msponer.android.yac.db
Class QueryHelper

java.lang.Object
  extended by de.msponer.android.yac.db.QueryHelper

public class QueryHelper
extends Object

Helper class to generate ORMLite queries.

Author:
msponer

Constructor Summary
QueryHelper(Context context)
          Constructor setting the application context.
 
Method Summary
 List<MobileWorkItem> queryForAllLocalizedWorkitems(String lonKey, String latKey)
          Queries the database for all localized work items and returns the resulting list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryHelper

public QueryHelper(Context context)
Constructor setting the application context.

Parameters:
context - The app context.
Method Detail

queryForAllLocalizedWorkitems

public List<MobileWorkItem> queryForAllLocalizedWorkitems(String lonKey,
                                                          String latKey)
                                                   throws Exception
Queries the database for all localized work items and returns the resulting list.

Parameters:
lonKey - The key for longitude
latKey - The key for latitude
Returns:
A list of all localized work items.
Throws:
Exception - Errors during query.