public class UserDetailsContentProvider
extends android.content.ContentProvider
| Constructor and Description | 
|---|
UserDetailsContentProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
delete(android.net.Uri uri,
      java.lang.String selection,
      java.lang.String[] selectionArgs)
Delete one or more records from the SQLite database. 
 | 
java.lang.String | 
getType(android.net.Uri uri)
The content provider must return the content type for its supported URIs. 
 | 
android.net.Uri | 
insert(android.net.Uri uri,
      android.content.ContentValues values)
Insert a new record into the database. 
 | 
boolean | 
onCreate()
Part of the Content Provider interface. 
 | 
android.database.Cursor | 
query(android.net.Uri uri,
     java.lang.String[] projection,
     java.lang.String selection,
     java.lang.String[] selectionArgs,
     java.lang.String sortOrder)
Query for a (number of) records. 
 | 
int | 
update(android.net.Uri uri,
      android.content.ContentValues values,
      java.lang.String selection,
      java.lang.String[] selectionArgs)
Part of the ContentProvider implementation. 
 | 
applyBatch, attachInfo, bulkInsert, call, canonicalize, dump, getCallingPackage, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalizepublic boolean onCreate()
onCreate in class android.content.ContentProvider@Nullable
public android.database.Cursor query(@NonNull
                                                android.net.Uri uri,
                                                @Nullable
                                                java.lang.String[] projection,
                                                @Nullable
                                                java.lang.String selection,
                                                @Nullable
                                                java.lang.String[] selectionArgs,
                                                @Nullable
                                                java.lang.String sortOrder)
query in class android.content.ContentProvideruri - The URI to queryprojection - The fields to returnselection - The WHERE clauseselectionArgs - Any arguments to the WHERE clausesortOrder - the sort order for the returned records@Nullable
public java.lang.String getType(@NonNull
                                           android.net.Uri uri)
getType in class android.content.ContentProvideruri - the URI for typing@Nullable
public android.net.Uri insert(@NonNull
                                         android.net.Uri uri,
                                         @Nullable
                                         android.content.ContentValues values)
insert in class android.content.ContentProvideruri - the base URI to insert at (must be a directory-based URI)values - the values to be insertedpublic int delete(@NonNull
                  android.net.Uri uri,
                  @Nullable
                  java.lang.String selection,
                  @Nullable
                  java.lang.String[] selectionArgs)
delete in class android.content.ContentProvideruri - the URI of the record(s) to deleteselection - A WHERE clause to use for the deletionselectionArgs - Any arguments to replace the ? in the selectionpublic int update(@NonNull
                  android.net.Uri uri,
                  @Nullable
                  android.content.ContentValues values,
                  @Nullable
                  java.lang.String selection,
                  @Nullable
                  java.lang.String[] selectionArgs)
update in class android.content.ContentProvideruri - The URI of the record(s)values - The new values for the record(s)selection - If the URI is a directory, the WHERE clauseselectionArgs - Arguments for the WHERE clause