Class WeatherContentManager
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherContentManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uristatic final Uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcheckForDatabaseUpgrade(Context c) static String[]static Areas.AreagetAreaFromCursor(Cursor c) static StringgetAreaNameFromCursor(Cursor c) static ContentValuesstatic ContentValuesgetContentValuesFromData_Blob(int id, byte[] blob) static ContentValuesgetContentValuesFromData_Boolean(int id, boolean value) static ContentValuesgetContentValuesFromData_Float(int id, float value) static ContentValuesgetContentValuesFromData_Int(int id, int value) static ContentValuesgetContentValuesFromData_Long(int id, long value) static ContentValuesgetContentValuesFromData_String(int id, String value) static ContentValuesgetContentValuesFromPollen(Pollen pollen) static ContentValuesgetContentValuesFromPollenArea(PollenArea pollenArea) static ContentValuesgetContentValuesFromTextForecast(TextForecast textForecast) static ContentValuesgetContentValuesFromWeatherCard(RawWeatherInfo rawWeatherInfo) static ContentValuesgetContentValuesFromWeatherWarning(WeatherWarning weatherWarning) static DataPackagegetDataFromCursor(Cursor cursor) static PollenAreagetPollenAreaFromCursor(Cursor c) static PollengetPollenFromCursor(Cursor c) static RawWeatherInfogetRawWeatherInfoFromCursor(Cursor c) static TextForecastgetTextForecastFromCursor(Cursor c) static StringgetWarncellIDFromCursor(Cursor c) static CurrentWeatherInfogetWeatherInfo(Context context, Cursor cursor) static WeatherWarninggetWeatherWarningFromCursor(Cursor c) static StringserializeString(String[] s) static String
-
Field Details
-
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 Details
-
WeatherContentManager
public WeatherContentManager()
-
-
Method Details
-
serializeString
-
serializeStringFromArrayList
-
deSerializeString
-
deSerializeStringToArraylist
-
getContentValuesFromWeatherCard
-
getRawWeatherInfoFromCursor
-
getWeatherInfo
-
getContentValuesFromWeatherWarning
-
getWeatherWarningFromCursor
-
getContentValuesFromTextForecast
-
getTextForecastFromCursor
-
getContentValuesFromArea
-
getAreaFromCursor
-
getAreaNameFromCursor
-
getWarncellIDFromCursor
-
getContentValuesFromPollenArea
-
getPollenAreaFromCursor
-
getContentValuesFromPollen
-
getPollenFromCursor
-
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
-
getContentValuesFromData_Boolean
public static ContentValues getContentValuesFromData_Boolean(int id, boolean value) -
getDataFromCursor
-
checkForDatabaseUpgrade
public static int checkForDatabaseUpgrade(Context c)
-