public static T_WorkoutExercisesControl getInstance(Context context) {
   if (instance == null) {
     context = context.getApplicationContext();
     ThreadFactory logThreadFactory = Executors.defaultThreadFactory();
     Executor logExecutor = Executors.newSingleThreadExecutor(logThreadFactory);
     SQLiteOpenHelper openHelper =
         DbOpenHelper.getInstance(context, DBControl.DB_NAME, DBControl.DB_VERSION, logExecutor);
     instance = new T_WorkoutExercisesControl(context, logExecutor, openHelper);
   }
   return instance;
 }
 public InviteMessgeDao(Context context) {
   dbHelper = DbOpenHelper.getInstance(context);
 }
예제 #3
0
 public UserDao(Context context) {
   dbHelper = DbOpenHelper.getInstance(context);
 }