Java Code Examples for android.database.sqlite.SQLiteDatabase.setForeignKeyConstraintsEnabled()

The following are Jave code examples for showing how to use setForeignKeyConstraintsEnabled() of the android.database.sqlite.SQLiteDatabase class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: an2linuxclient   File: ServerDatabaseHandler.java   View Source Code Vote up 4 votes
@Override
public void onConfigure(SQLiteDatabase db){
    db.setForeignKeyConstraintsEnabled(true);
}
 
Example 2
Project: MyCalendar   File: DBHelper.java   View Source Code Vote up 4 votes
@Override
public void onConfigure(SQLiteDatabase db) {
    db.setForeignKeyConstraintsEnabled(true);
}
 
Example 3
Project: TrainAppTFG   File: DatabaseAdapter.java   View Source Code Vote up 4 votes
@Override
public void onConfigure(SQLiteDatabase db){
    db.setForeignKeyConstraintsEnabled(true);
}
 
Example 4
Project: disclosure-android-app   File: DatabaseOpenHelper.java   View Source Code Vote up 4 votes
@Override public void onOpen(SQLiteDatabase db) {
  super.onOpen(db);

  db.setForeignKeyConstraintsEnabled(true);
}