From: gu.martinm@gmail.com Date: Wed, 16 Apr 2014 17:26:52 +0000 (+0200) Subject: Weather Information: remove provider X-Git-Tag: weatherinformation-1.0~172 X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=b6eacb407ba75aab32da2ed3edc719c0072630e8;p=AndroidWeatherInformation Weather Information: remove provider --- diff --git a/src/de/example/exampletdd/provider/WeatherInformationIndexer.java b/src/de/example/exampletdd/provider/WeatherInformationIndexer.java deleted file mode 100644 index d398daa..0000000 --- a/src/de/example/exampletdd/provider/WeatherInformationIndexer.java +++ /dev/null @@ -1,28 +0,0 @@ -package de.example.exampletdd.provider; - -import android.net.Uri; -import android.provider.BaseColumns; - -public class WeatherInformationIndexer { - - // This class cannot be instantiated - private WeatherInformationIndexer() {} - - public static final class Index implements BaseColumns { - - // This class cannot be instantiated - private Index() {} - - /** - * The content URI base for a single index. Callers must - * append a numeric note id to this Uri to retrieve an index - */ - public static final Uri CONTENT_ID_URI_BASE - = Uri.parse("content://de.example.exampletdd.provider/indexer/"); - - /** - * The table name offered by this provider - */ - public static final String TABLE_NAME = "indexer"; - } -} diff --git a/src/de/example/exampletdd/provider/WeatherInformationOpenHelper.java b/src/de/example/exampletdd/provider/WeatherInformationOpenHelper.java deleted file mode 100644 index 6741f26..0000000 --- a/src/de/example/exampletdd/provider/WeatherInformationOpenHelper.java +++ /dev/null @@ -1,44 +0,0 @@ -package de.example.exampletdd.provider; - -import android.content.Context; -import android.database.DatabaseErrorHandler; -import android.database.sqlite.SQLiteDatabase; -import android.database.sqlite.SQLiteDatabase.CursorFactory; -import android.database.sqlite.SQLiteOpenHelper; - -public class WeatherInformationOpenHelper extends SQLiteOpenHelper { - private static final String TAG = "WeatherInformationOpenHelper"; - - private static final String DATABASE_NAME = "weatherinformation.db"; - private static final int DATABASE_VERSION = 1; - - WeatherInformationOpenHelper(final Context context) { - super(context, DATABASE_NAME, null, DATABASE_VERSION); - } - - public WeatherInformationOpenHelper(final Context context, final String name, - final CursorFactory factory, final int version) { - super(context, name, factory, version); - // TODO Auto-generated constructor stub - } - - public WeatherInformationOpenHelper(final Context context, final String name, - final CursorFactory factory, final int version, - final DatabaseErrorHandler errorHandler) { - super(context, name, factory, version, errorHandler); - // TODO Auto-generated constructor stub - } - - @Override - public void onCreate(final SQLiteDatabase db) { - // TODO Auto-generated method stub - - } - - @Override - public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { - // TODO Auto-generated method stub - - } - -} diff --git a/src/de/example/exampletdd/provider/WeatherInformationProvider.java b/src/de/example/exampletdd/provider/WeatherInformationProvider.java deleted file mode 100644 index 25d5045..0000000 --- a/src/de/example/exampletdd/provider/WeatherInformationProvider.java +++ /dev/null @@ -1,50 +0,0 @@ -package de.example.exampletdd.provider; - -import android.content.ContentProvider; -import android.content.ContentValues; -import android.database.Cursor; -import android.net.Uri; - -public class WeatherInformationProvider extends ContentProvider { - public WeatherInformationProvider() { - } - - @Override - public int delete(final Uri uri, final String selection, final String[] selectionArgs) { - // Implement this to handle requests to delete one or more rows. - throw new UnsupportedOperationException("Not yet implemented"); - } - - @Override - public String getType(final Uri uri) { - // TODO: Implement this to handle requests for the MIME type of the data - // at the given URI. - throw new UnsupportedOperationException("Not yet implemented"); - } - - @Override - public Uri insert(final Uri uri, final ContentValues values) { - // TODO: Implement this to handle requests to insert a new row. - throw new UnsupportedOperationException("Not yet implemented"); - } - - @Override - public boolean onCreate() { - // TODO: Implement this to initialize your content provider on startup. - return false; - } - - @Override - public Cursor query(final Uri uri, final String[] projection, final String selection, - final String[] selectionArgs, final String sortOrder) { - // TODO: Implement this to handle query requests from clients. - throw new UnsupportedOperationException("Not yet implemented"); - } - - @Override - public int update(final Uri uri, final ContentValues values, final String selection, - final String[] selectionArgs) { - // TODO: Implement this to handle requests to update one or more rows. - throw new UnsupportedOperationException("Not yet implemented"); - } -}