test_class.declarator: mHaloDatabase
test_class.modifier: private
test_class.original_string: private HaloDataLite mHaloDatabase;
test_class.type: HaloDataLite
test_class.var_name: mHaloDatabase
test_class.declarator: mCallbackFlag
test_class.modifier: private
test_class.original_string: private CallbackFlag mCallbackFlag;
test_class.type: CallbackFlag
test_class.var_name: mCallbackFlag
test_class.declarator: mContext
test_class.modifier: private
test_class.original_string: private Context mContext;
test_class.type: Context
test_class.var_name: mContext
test_class.file: sdk/halo-framework/src/test/java/com/mobgen/halo/android/framework/storage/database/HaloDataLiteTest.java
test_class.identifier: HaloDataLiteTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatHandleTransactionCallback() throws HaloStorageGeneralException {
          HaloDataLite.HaloDataLiteTransaction transactionCallback = givenATransactionCallback(mCallbackFlag);
          mHaloDatabase.transaction(transactionCallback);
          assertThat(mCallbackFlag.isFlagged()).isTrue();
      }
test_case.class_method_signature: HaloDataLiteTest.thatHandleTransactionCallback()
test_case.full_signature: @Test public void thatHandleTransactionCallback()
test_case.identifier: thatHandleTransactionCallback
test_case.invocations: givenATransactionCallback transaction isTrue assertThat isFlagged
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatHandleTransactionCallback()
focal_class.declarator: mDatabaseVersionManager
focal_class.modifier: private
focal_class.original_string: private HaloDatabaseVersionManager mDatabaseVersionManager;
focal_class.type: HaloDatabaseVersionManager
focal_class.var_name: mDatabaseVersionManager
focal_class.declarator: mDatabase
focal_class.modifier: private
focal_class.original_string: private SQLiteDatabase mDatabase;
focal_class.type: SQLiteDatabase
focal_class.var_name: mDatabase
focal_class.declarator: mContext
focal_class.modifier: private final
focal_class.original_string: private final Context mContext;
focal_class.type: Context
focal_class.var_name: mContext
focal_class.file: sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/storage/database/HaloDataLite.java
focal_class.identifier: HaloDataLite
focal_class.interfaces: implements Corruptible
focal_class.class_method_signature: HaloDataLite.HaloDataLite(@NonNull Context context, @NonNull String name, int version, @NonNull HaloDatabaseVersionManager manager, @NonNull HaloDatabaseErrorHandler handler)
focal_class.full_signature: private  HaloDataLite(@NonNull Context context, @NonNull String name, int version, @NonNull HaloDatabaseVersionManager manager, @NonNull HaloDatabaseErrorHandler handler)
focal_class.identifier: HaloDataLite
focal_class.modifiers: private
focal_class.parameters: (@NonNull Context context, @NonNull String name, int version, @NonNull HaloDatabaseVersionManager manager, @NonNull HaloDatabaseErrorHandler handler)
focal_class.signature:  HaloDataLite(@NonNull Context context, @NonNull String name, int version, @NonNull HaloDatabaseVersionManager manager, @NonNull HaloDatabaseErrorHandler handler)
focal_class.class_method_signature: HaloDataLite.builder(Context context)
focal_class.full_signature: @Api(2.0) public static Builder builder(Context context)
focal_class.identifier: builder
focal_class.modifiers: @Api(2.0) public static
focal_class.parameters: (Context context)
focal_class.return: Builder
focal_class.signature: Builder builder(Context context)
focal_class.class_method_signature: HaloDataLite.onCreate(@NonNull SQLiteDatabase db)
focal_class.full_signature: @Override public void onCreate(@NonNull SQLiteDatabase db)
focal_class.identifier: onCreate
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull SQLiteDatabase db)
focal_class.return: void
focal_class.signature: void onCreate(@NonNull SQLiteDatabase db)
focal_class.class_method_signature: HaloDataLite.onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion)
focal_class.full_signature: @Override public void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion)
focal_class.identifier: onUpgrade
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull SQLiteDatabase db, int oldVersion, int newVersion)
focal_class.return: void
focal_class.signature: void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion)
focal_class.class_method_signature: HaloDataLite.getDatabase()
focal_class.full_signature: @Api(2.0) public synchronized SQLiteDatabase getDatabase()
focal_class.identifier: getDatabase
focal_class.modifiers: @Api(2.0) public synchronized
focal_class.parameters: ()
focal_class.return: SQLiteDatabase
focal_class.signature: SQLiteDatabase getDatabase()
focal_class.class_method_signature: HaloDataLite.ensureInitialized()
focal_class.full_signature: @Api(2.0) public void ensureInitialized()
focal_class.identifier: ensureInitialized
focal_class.modifiers: @Api(2.0) public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void ensureInitialized()
focal_class.class_method_signature: HaloDataLite.onCorrupted()
focal_class.full_signature: @Override public void onCorrupted()
focal_class.identifier: onCorrupted
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onCorrupted()
focal_class.class_method_signature: HaloDataLite.deleteDatabase()
focal_class.full_signature: @Api(1.0) public void deleteDatabase()
focal_class.identifier: deleteDatabase
focal_class.modifiers: @Api(1.0) public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deleteDatabase()
focal_class.class_method_signature: HaloDataLite.attachDatabase(@NonNull String databaseName, @NonNull String aliasName)
focal_class.full_signature: @Api(1.3) public void attachDatabase(@NonNull String databaseName, @NonNull String aliasName)
focal_class.identifier: attachDatabase
focal_class.modifiers: @Api(1.3) public
focal_class.parameters: (@NonNull String databaseName, @NonNull String aliasName)
focal_class.return: void
focal_class.signature: void attachDatabase(@NonNull String databaseName, @NonNull String aliasName)
focal_class.class_method_signature: HaloDataLite.detachDatabase(@NonNull String aliasName)
focal_class.full_signature: @Api(1.3) public void detachDatabase(@NonNull String aliasName)
focal_class.identifier: detachDatabase
focal_class.modifiers: @Api(1.3) public
focal_class.parameters: (@NonNull String aliasName)
focal_class.return: void
focal_class.signature: void detachDatabase(@NonNull String aliasName)
focal_class.class_method_signature: HaloDataLite.transaction(@NonNull HaloDataLiteTransaction transaction)
focal_class.full_signature: @Api(2.0) public void transaction(@NonNull HaloDataLiteTransaction transaction)
focal_class.identifier: transaction
focal_class.modifiers: @Api(2.0) public
focal_class.parameters: (@NonNull HaloDataLiteTransaction transaction)
focal_class.return: void
focal_class.signature: void transaction(@NonNull HaloDataLiteTransaction transaction)
focal_class.superclass: extends SQLiteOpenHelper
focal_method.body: @Api(2.0)
      public void transaction(@NonNull HaloDataLiteTransaction transaction) throws HaloStorageGeneralException {
          SQLiteDatabase database = getDatabase();
          database.beginTransaction();
          try {
              transaction.onTransaction(database);
              database.setTransactionSuccessful();
          } catch (Exception e) {
              throw new HaloStorageGeneralException("Database error: " + e.getMessage(), e);
          } finally {
              database.endTransaction();
          }
      }
focal_method.class_method_signature: HaloDataLite.transaction(@NonNull HaloDataLiteTransaction transaction)
focal_method.full_signature: @Api(2.0) public void transaction(@NonNull HaloDataLiteTransaction transaction)
focal_method.identifier: transaction
focal_method.invocations: getDatabase beginTransaction onTransaction setTransactionSuccessful getMessage endTransaction
focal_method.modifiers: @Api(2.0) public
focal_method.parameters: (@NonNull HaloDataLiteTransaction transaction)
focal_method.return: void
focal_method.signature: void transaction(@NonNull HaloDataLiteTransaction transaction)