+++ /dev/null
-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";
- }
-}
+++ /dev/null
-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
-
- }
-
-}
+++ /dev/null
-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");
- }
-}