Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.gawst.asyncdb;
 
 import  android.content.ContentValues;
 import  android.database.DatabaseErrorHandler;

interface used to receive errors from the AsynchronousDbHelper

Parameters:
<E> the type of items stored in memory by the AsynchronousDbHelper
Author(s):
Steve Lhomme
See also:
AsynchronousDbHelper.setDbErrorHandler(AsynchronousDbErrorHandler)
public interface AsynchronousDbErrorHandler<E> {

Called when the database failed to store the item

Parameters:
db that tried to store
item the data that failed to store
values the values that failed to be added
cause an exception explaining why it failed
	void onAddItemFailed(AsynchronousDbHelper<E, ?> db, E item, ContentValues valuesThrowable cause);

Called when the database failed to update an item

Parameters:
db that tried to store
item the data that failed to store
cause an exception explaining why it failed
	void onUpdateItemFailed(AsynchronousDbHelper<E, ?> db, E itemThrowable cause);

Called when the database failed to delete an item

Parameters:
db that tried to store
item the data that failed to store
cause an exception explaining why it failed
	void onRemoveItemFailed(AsynchronousDbHelper<E, ?> db, E itemThrowable cause);

Called when the database failed to replace an item

Parameters:
db that tried to store
original the item that failed to be updated
replacement the data that should be in the item
cause an exception explaining why it failed
	void onReplaceItemFailed(AsynchronousDbHelper<E, ?> db, E original, E replacementThrowable cause);

Called when the database has been found to be corrupted

Parameters:
db that is corrupted
See also:
DatabaseErrorHandler.onCorruption(android.database.sqlite.SQLiteDatabase)
New to GrepCode? Check out our FAQ X