Class WeatherContentProvider
- java.lang.Object
-
- ContentProvider
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherContentProvider
-
public class WeatherContentProvider extends ContentProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeatherContentProvider.WeatherDatabaseHelper
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATABASE_NAME
static int
DATABASE_VERSION
static java.lang.String
EXISTCLAUSE
static java.lang.String
TABLE_NAME_AREAS
static java.lang.String
TABLE_NAME_DATA
static java.lang.String
TABLE_NAME_FORECASTS
static java.lang.String
TABLE_NAME_POLLEN
static java.lang.String
TABLE_NAME_POLLENAREAS
static java.lang.String
TABLE_NAME_TEXTS
static java.lang.String
TABLE_NAME_WARNINGS
-
Constructor Summary
Constructors Constructor Description WeatherContentProvider()
-
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)
-
-
-
Field Detail
-
DATABASE_VERSION
public static final int DATABASE_VERSION
- See Also:
- Constant Field Values
-
DATABASE_NAME
public static final java.lang.String DATABASE_NAME
- See Also:
- Constant Field Values
-
TABLE_NAME_FORECASTS
public static final java.lang.String TABLE_NAME_FORECASTS
- See Also:
- Constant Field Values
-
TABLE_NAME_WARNINGS
public static final java.lang.String TABLE_NAME_WARNINGS
- See Also:
- Constant Field Values
-
TABLE_NAME_TEXTS
public static final java.lang.String TABLE_NAME_TEXTS
- See Also:
- Constant Field Values
-
TABLE_NAME_AREAS
public static final java.lang.String TABLE_NAME_AREAS
- See Also:
- Constant Field Values
-
TABLE_NAME_POLLENAREAS
public static final java.lang.String TABLE_NAME_POLLENAREAS
- See Also:
- Constant Field Values
-
TABLE_NAME_POLLEN
public static final java.lang.String TABLE_NAME_POLLEN
- See Also:
- Constant Field Values
-
TABLE_NAME_DATA
public static final java.lang.String TABLE_NAME_DATA
- See Also:
- Constant Field Values
-
EXISTCLAUSE
public static final java.lang.String EXISTCLAUSE
- See Also:
- Constant Field Values
-
-
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)
-
-