예제 #1
0
  @Override
  public void onOpen(SQLiteDatabase db) {
    if (databaseHelperListener != null) {
      databaseHelperListener.onOpen(db);
    }

    checkForeignKeySupport(db);
  }
예제 #2
0
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    if (databaseHelperListener != null) {
      databaseHelperListener.onUpgrade(db, oldVersion, newVersion);
    }

    checkForeignKeySupport(db);
    executeCreations(db);
    executeMigrations(db, oldVersion, newVersion);
  }
예제 #3
0
  @Override
  public void onCreate(SQLiteDatabase db) {
    if (databaseHelperListener != null) {
      databaseHelperListener.onCreate(db);
    }

    checkForeignKeySupport(db);
    executeCreations(db);
    executeMigrations(db, -1, databaseDefinition.getDatabaseVersion());
  }
예제 #4
0
 @Override
 public void onUpgrade(DatabaseWrapper database, int oldVersion, int newVersion) {
   if (helperListener != null) {
     helperListener.onUpgrade(database, oldVersion, newVersion);
   }
 }
예제 #5
0
 @Override
 public void onCreate(DatabaseWrapper database) {
   if (helperListener != null) {
     helperListener.onCreate(database);
   }
 }