FileDocCategorySizeDatePackage
SyncProvider.javaAPI DocAndroid 1.5 API1535Wed May 06 22:41:54 BST 2009android.content

SyncProvider

public class SyncProvider extends ContentProvider
ContentProvider that tracks the sync data and overall sync history on the device.
hide

Fields Summary
private SyncStorageEngine
mSyncStorageEngine
Constructors Summary
public SyncProvider()

    
Methods Summary
public intdelete(android.net.Uri url, java.lang.String where, java.lang.String[] whereArgs)

        return mSyncStorageEngine.delete(true /* the caller is the provider */,
                url, where, whereArgs);
    
public java.lang.StringgetType(android.net.Uri url)

        return mSyncStorageEngine.getType(url);
    
public android.net.Uriinsert(android.net.Uri url, ContentValues initialValues)

        return mSyncStorageEngine.insert(true /* the caller is the provider */,
                url, initialValues);
    
public booleanonCreate()

        mSyncStorageEngine = SyncStorageEngine.getSingleton();
        return true;
    
public android.database.Cursorquery(android.net.Uri url, java.lang.String[] projectionIn, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sort)

        return mSyncStorageEngine.query(url, projectionIn, selection, selectionArgs, sort);
    
public intupdate(android.net.Uri url, ContentValues initialValues, java.lang.String where, java.lang.String[] whereArgs)

        return mSyncStorageEngine.update(true /* the caller is the provider */, 
                url, initialValues, where, whereArgs);