SQLiteDatabase beginTransactionWithListener - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for SQLiteDatabase beginTransactionWithListener method.

This code example shows how to use the following methods: beginTransactionWithListener, endTransaction, execSQL
    public Uri insert(Uri uri, ContentValues values) {
        Uri result = null;
        boolean applyingBatch = applyingBatch();
        if (!applyingBatch) {
            mDb = mOpenHelper.getWritableDatabase();
            mDb.execSQL("PRAGMA cache_size=6000");
        	mDb.execSQL("PRAGMA synchronous=OFF");
        	mDb.execSQL("PRAGMA count_changes=OFF");
            mDb.beginTransactionWithListener(this);
            try { 
                result = insertInTransaction(uri, values);
                if (result != null) {
                    mNotifyChange = true;
                } 
                mDb.setTransactionSuccessful();
            } finally { 
                mDb.endTransaction();
            } 
 
            onEndTransaction(); 

6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: beginTransactionWithListener, endTransaction
    public Uri insert(Uri uri, ContentValues values) {
        Uri result = null;
        boolean applyingBatch = applyingBatch();
        if (!applyingBatch) {
            mDb = mOpenHelper.getWritableDatabase();
            mDb.beginTransactionWithListener(this);
            try { 
                result = insertInTransaction(uri, values);
                if (result != null) {
                    mNotifyChange = true;
                } 
                mDb.setTransactionSuccessful();
            } finally { 
                mDb.endTransaction();
            } 
 
            onEndTransaction(); 
        } else { 
            result = insertInTransaction(uri, values);
            if (result != null) {
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: beginTransactionWithListener, endTransaction
  public Uri insert(Uri uri, ContentValues values) {
    Uri result = null;
    boolean applyingBatch = applyingBatch();
    if (!applyingBatch) {
      mDb = mOpenHelper.getWritableDatabase();
      mDb.beginTransactionWithListener(this);
      try { 
        result = insertInTransaction(uri, values);
        if (result != null) {
          mNotifyChange = true;
        } 
        mDb.setTransactionSuccessful();
      } finally { 
        mDb.endTransaction();
      } 
 
      onEndTransaction(); 
    } else { 
      result = insertInTransaction(uri, values);
      if (result != null) {
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: beginTransactionWithListener, endTransaction, setTransactionSuccessful
    public Uri insert(Uri uri, ContentValues values) {
        Uri result = null;
        boolean applyingBatch = applyingBatch();
        if (!applyingBatch) {
            mDb = mOpenHelper.getWritableDatabase();
            mDb.beginTransactionWithListener(this);
            try { 
                result = insertInTransaction(uri, values);
                if (result != null) {
                    mNotifyChange = true;
                } 
                mDb.setTransactionSuccessful();
            } finally { 
                mDb.endTransaction();
            } 
 
            onEndTransaction(); 
        } else { 
            result = insertInTransaction(uri, values);
            if (result != null) {
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: beginTransactionWithListener, endTransaction
    public Uri insert(Uri uri, ContentValues values) {
        Uri result = null;
        boolean applyingBatch = applyingBatch();
        if (!applyingBatch) {
            mDb = mOpenHelper.getWritableDatabase();
            mDb.beginTransactionWithListener(this);
            try { 
                result = insertInTransaction(uri, values);
                if (result != null) {
                    mNotifyChange = true;
                } 
                mDb.setTransactionSuccessful();
            } finally { 
                mDb.endTransaction();
            } 
 
            onEndTransaction(); 
        } else { 
            result = insertInTransaction(uri, values);
            if (result != null) {
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
beginTransactionWithListener Method Overview
Begins a transaction in EXCLUSIVE mode.
See Code Examples for other Android SQLiteDatabase Methods: