de.msponer.android.yac.db
Class QueryHelper
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryHelper
public QueryHelper(Context context)
- Constructor setting the application context.
- Parameters:
context
- The app context.
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 longitudelatKey
- The key for latitude
- Returns:
- A list of all localized work items.
- Throws:
Exception
- Errors during query.