Class WeatherContentManager
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherContentManager
-
public class WeatherContentManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Uri
AREA_URI_ALL
static Uri
AREA_URI_SINLGE
static Uri
FORECAST_URI_ALL
static Uri
FORECAST_URI_SINLGE
static Uri
POLLEN_URI_ALL
static Uri
POLLEN_URI_SINGLE
static Uri
POLLENAREAS_URI_ALL
static Uri
POLLENAREAS_URI_SINGLE
static Uri
TEXT_URI_ALL
static Uri
TEXT_URI_SINLGE
static Uri
WARNING_URI_ALL
static Uri
WARNING_URI_SINLGE
-
Constructor Summary
Constructors Constructor Description WeatherContentManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
checkForDatabaseUpgrade(Context c)
static java.lang.String[]
deSerializeString(java.lang.String s)
static java.util.ArrayList<java.lang.String>
deSerializeStringToArraylist(java.lang.String s)
static Areas.Area
getAreaFromCursor(Cursor c)
static java.lang.String
getAreaNameFromCursor(Cursor c)
static ContentValues
getContentValuesFromArea(Areas.Area area)
static ContentValues
getContentValuesFromPollen(Pollen pollen)
static ContentValues
getContentValuesFromPollenArea(PollenArea pollenArea)
static ContentValues
getContentValuesFromTextForecast(TextForecast textForecast)
static ContentValues
getContentValuesFromWeatherCard(RawWeatherInfo rawWeatherInfo)
static ContentValues
getContentValuesFromWeatherWarning(WeatherWarning weatherWarning)
static PollenArea
getPollenAreaFromCursor(Cursor c)
static Pollen
getPollenFromCursor(Cursor c)
static RawWeatherInfo
getRawWeatherInfoFromCursor(Cursor c)
static TextForecast
getTextForecastFromCursor(Cursor c)
static java.lang.String
getWarncellIDFromCursor(Cursor c)
static CurrentWeatherInfo
getWeatherInfo(Context context, Cursor cursor)
static WeatherWarning
getWeatherWarningFromCursor(Cursor c)
static java.lang.String
serializeString(java.lang.String[] s)
static java.lang.String
serializeStringFromArrayList(java.util.ArrayList<java.lang.String> s)
-
-
-
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
-
-
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)
-
checkForDatabaseUpgrade
public static int checkForDatabaseUpgrade(Context c)
-
-