Class WeatherContentProvider


  • public class WeatherContentProvider
    extends ContentProvider
    • 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)