From cdb4707986039d0658280a54f32f883210540287 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Wed, 16 Apr 2014 19:26:52 +0200 Subject: [PATCH] Weather Information: remove provider --- .../provider/WeatherInformationIndexer.java | 28 ------------ .../provider/WeatherInformationOpenHelper.java | 44 ------------------- .../provider/WeatherInformationProvider.java | 50 ---------------------- 3 files changed, 122 deletions(-) delete mode 100644 Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationIndexer.java delete mode 100644 Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationOpenHelper.java delete mode 100644 Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationProvider.java diff --git a/Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationIndexer.java b/Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationIndexer.java deleted file mode 100644 index d398daa..0000000 --- a/Android/WeatherInformation/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/Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationOpenHelper.java b/Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationOpenHelper.java deleted file mode 100644 index 6741f26..0000000 --- a/Android/WeatherInformation/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/Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationProvider.java b/Android/WeatherInformation/src/de/example/exampletdd/provider/WeatherInformationProvider.java deleted file mode 100644 index 25d5045..0000000 --- a/Android/WeatherInformation/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"); - } -} -- 2.1.4