Class WeatherContentProvider


  • public class WeatherContentProvider
    extends ContentProvider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int delete​(Uri uri, java.lang.String selection, java.lang.String[] selectionArgs)  
      java.lang.String getType​(Uri uri)  
      Uri insert​(Uri uri, ContentValues contentValues)  
      boolean onCreate()  
      Cursor query​(Uri uri, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)  
      int update​(Uri uri, ContentValues contentValues, java.lang.String selection, java.lang.String[] selectionArgs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeatherContentProvider

        public WeatherContentProvider()
    • Method Detail

      • onCreate

        public boolean onCreate()
      • query

        public Cursor query​(Uri uri,
                            java.lang.String[] projection,
                            java.lang.String selection,
                            java.lang.String[] selectionArgs,
                            java.lang.String sortOrder)
                     throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • getType

        public java.lang.String getType​(Uri uri)
      • insert

        public Uri insert​(Uri uri,
                          ContentValues contentValues)
                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • delete

        public int delete​(Uri uri,
                          java.lang.String selection,
                          java.lang.String[] selectionArgs)
      • update

        public int update​(Uri uri,
                          ContentValues contentValues,
                          java.lang.String selection,
                          java.lang.String[] selectionArgs)