Class WeatherContentManager


  • public class WeatherContentManager
    extends java.lang.Object
    • Field Detail

      • FORECAST_URI_SINLGE

        public static final Uri FORECAST_URI_SINLGE
      • FORECAST_URI_ALL

        public static final Uri FORECAST_URI_ALL
      • WARNING_URI_SINLGE

        public static final Uri WARNING_URI_SINLGE
      • WARNING_URI_ALL

        public static final Uri WARNING_URI_ALL
      • TEXT_URI_SINLGE

        public static final Uri TEXT_URI_SINLGE
      • TEXT_URI_ALL

        public static final Uri TEXT_URI_ALL
      • AREA_URI_SINLGE

        public static final Uri AREA_URI_SINLGE
      • AREA_URI_ALL

        public static final Uri AREA_URI_ALL
      • POLLENAREAS_URI_SINGLE

        public static final Uri POLLENAREAS_URI_SINGLE
      • POLLENAREAS_URI_ALL

        public static final Uri POLLENAREAS_URI_ALL
      • POLLEN_URI_SINGLE

        public static final Uri POLLEN_URI_SINGLE
      • POLLEN_URI_ALL

        public static final Uri POLLEN_URI_ALL
      • DATA_URI_SINGLE

        public static final Uri DATA_URI_SINGLE
      • DATA_URI_ALL

        public static final Uri DATA_URI_ALL
    • Constructor Detail

      • WeatherContentManager

        public WeatherContentManager()
    • Method Detail

      • serializeString

        public static java.lang.String serializeString​(java.lang.String[] s)
      • serializeStringFromArrayList

        public static java.lang.String serializeStringFromArrayList​(java.util.ArrayList<java.lang.String> s)
      • deSerializeString

        public static java.lang.String[] deSerializeString​(java.lang.String s)
      • deSerializeStringToArraylist

        public static java.util.ArrayList<java.lang.String> deSerializeStringToArraylist​(java.lang.String s)
      • getContentValuesFromWeatherCard

        public static ContentValues getContentValuesFromWeatherCard​(RawWeatherInfo rawWeatherInfo)
      • getRawWeatherInfoFromCursor

        public static RawWeatherInfo getRawWeatherInfoFromCursor​(Cursor c)
      • getWeatherInfo

        public static CurrentWeatherInfo getWeatherInfo​(Context context,
                                                        Cursor cursor)
      • getContentValuesFromWeatherWarning

        public static ContentValues getContentValuesFromWeatherWarning​(WeatherWarning weatherWarning)
      • getWeatherWarningFromCursor

        public static WeatherWarning getWeatherWarningFromCursor​(Cursor c)
      • getContentValuesFromTextForecast

        public static ContentValues getContentValuesFromTextForecast​(TextForecast textForecast)
      • getTextForecastFromCursor

        public static TextForecast getTextForecastFromCursor​(Cursor c)
      • getContentValuesFromArea

        public static ContentValues getContentValuesFromArea​(Areas.Area area)
      • getAreaFromCursor

        public static Areas.Area getAreaFromCursor​(Cursor c)
      • getAreaNameFromCursor

        public static java.lang.String getAreaNameFromCursor​(Cursor c)
      • getWarncellIDFromCursor

        public static java.lang.String getWarncellIDFromCursor​(Cursor c)
      • getContentValuesFromPollenArea

        public static ContentValues getContentValuesFromPollenArea​(PollenArea pollenArea)
      • getPollenAreaFromCursor

        public static PollenArea getPollenAreaFromCursor​(Cursor c)
      • getContentValuesFromPollen

        public static ContentValues getContentValuesFromPollen​(Pollen pollen)
      • getPollenFromCursor

        public static Pollen getPollenFromCursor​(Cursor c)
      • getContentValuesFromData_Blob

        public static ContentValues getContentValuesFromData_Blob​(int id,
                                                                  byte[] blob)
      • getContentValuesFromData_Float

        public static ContentValues getContentValuesFromData_Float​(int id,
                                                                   float value)
      • getContentValuesFromData_Int

        public static ContentValues getContentValuesFromData_Int​(int id,
                                                                 int value)
      • getContentValuesFromData_Long

        public static ContentValues getContentValuesFromData_Long​(int id,
                                                                  long value)
      • getContentValuesFromData_String

        public static ContentValues getContentValuesFromData_String​(int id,
                                                                    java.lang.String value)
      • getContentValuesFromData_Boolean

        public static ContentValues getContentValuesFromData_Boolean​(int id,
                                                                     boolean value)
      • getDataFromCursor

        public static DataPackage getDataFromCursor​(Cursor cursor)
      • checkForDatabaseUpgrade

        public static int checkForDatabaseUpgrade​(Context c)