com.splitforce.lib.dao
Class SplitforceGoalDao

java.lang.Object
  extended by com.splitforce.lib.dao.SplitforceGoalDao
All Implemented Interfaces:
SfGoalDao

public class SplitforceGoalDao
extends java.lang.Object
implements SfGoalDao


Method Summary
 void addNewGoal(android.content.Context context, Goal goal)
          Send a new goal to the content provider to insert into the db.
 void deleteGoal(android.content.Context context, long id)
          Delete a stored goal.
 java.util.List<Goal> getGoals(android.content.Context context)
           
static SfGoalDao getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SfGoalDao getInstance()

getGoals

public java.util.List<Goal> getGoals(android.content.Context context)
Specified by:
getGoals in interface SfGoalDao

addNewGoal

public void addNewGoal(android.content.Context context,
                       Goal goal)
Description copied from interface: SfGoalDao
Send a new goal to the content provider to insert into the db.

Specified by:
addNewGoal in interface SfGoalDao
goal - Goal

deleteGoal

public void deleteGoal(android.content.Context context,
                       long id)
Description copied from interface: SfGoalDao
Delete a stored goal.

Specified by:
deleteGoal in interface SfGoalDao
Parameters:
context - The application's context.
id - The local id of the goal.