// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class ArticleDAO {
// 
//     public static final String TABLE = "articles";
//     public static final String _ID = "_id";
//     public static final String FEEDID = "feedid";
//     public static final String FEEDNAME = "feedname";
//     public static final String GUID = "guid";
//     public static final String PUBDATE = "pubdate";
//     public static final String TITLE = "title";
//     public static final String SUMMARY = "summary";
//     public static final String CONTENT = "content";
//     public static final String IMAGE = "image";
//     public static final String LINK = "link";
//     public static final String READ = "read";
//     public static final String ISDELETED = "isdeleted";
// 
//     public static final String VIEW = "articles_view";
// 
//     private static final String IDX_FEEDID = "idx_article_feedid";
// 
// }
// 
// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class FeedDAO {
// 
//     public static final String TABLE = "feeds";
//     public static final String _ID = "_id";
//     public static final String NAME = "name";
//     public static final String URL = "url";
//     public static final String UPDATED = "updated";
//     public static final String UNREAD = "unread";
// 
//     public static final String VIEW = "feeds_view";
// 
// }


import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
import de.hdodenhof.holoreader.provider.SQLiteHelper.ArticleDAO;
import de.hdodenhof.holoreader.provider.SQLiteHelper.FeedDAO;
        case ARTICLES:
            mID = database.insert(ArticleDAO.TABLE, null, values);
            returnUri = Uri.parse(BASE_PATH_ARTICLES + "/" + mID);
            break;
        default:
            throw new IllegalArgumentException("Unknown URI: " + uri);
        }

        getContext().getContentResolver().notifyChange(uri, null);
        if (uriType == ARTICLES) {
            getContext().getContentResolver().notifyChange(URI_FEEDS, null);
        }

        return returnUri;
    }

    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {
        int uriType = sURIMatcher.match(uri);
        SQLiteDatabase database = mSQLiteHelper.getWritableDatabase();
        int rowsDeleted = 0;
        String id;

        switch (uriType) {
        case FEEDS:
            rowsDeleted = database.delete(FeedDAO.TABLE, selection, selectionArgs);
            break;
        case FEED_ID:
            id = uri.getLastPathSegment();
            if (TextUtils.isEmpty(selection)) {
// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class ArticleDAO {
// 
//     public static final String TABLE = "articles";
//     public static final String _ID = "_id";
//     public static final String FEEDID = "feedid";
//     public static final String FEEDNAME = "feedname";
//     public static final String GUID = "guid";
//     public static final String PUBDATE = "pubdate";
//     public static final String TITLE = "title";
//     public static final String SUMMARY = "summary";
//     public static final String CONTENT = "content";
//     public static final String IMAGE = "image";
//     public static final String LINK = "link";
//     public static final String READ = "read";
//     public static final String ISDELETED = "isdeleted";
// 
//     public static final String VIEW = "articles_view";
// 
//     private static final String IDX_FEEDID = "idx_article_feedid";
// 
// }
// 
// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class FeedDAO {
// 
//     public static final String TABLE = "feeds";
//     public static final String _ID = "_id";
//     public static final String NAME = "name";
//     public static final String URL = "url";
//     public static final String UPDATED = "updated";
//     public static final String UNREAD = "unread";
// 
//     public static final String VIEW = "feeds_view";
// 
// }


// Path: src/de/hdodenhof/holoreader/provider/RSSContentProvider.java
import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
import de.hdodenhof.holoreader.provider.SQLiteHelper.ArticleDAO;
import de.hdodenhof.holoreader.provider.SQLiteHelper.FeedDAO;

        case ARTICLES:
            mID = database.insert(ArticleDAO.TABLE, null, values);
            returnUri = Uri.parse(BASE_PATH_ARTICLES + "/" + mID);
            break;
        default:
            throw new IllegalArgumentException("Unknown URI: " + uri);
        }

        getContext().getContentResolver().notifyChange(uri, null);
        if (uriType == ARTICLES) {
            getContext().getContentResolver().notifyChange(URI_FEEDS, null);
        }

        return returnUri;
    }

    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {
        int uriType = sURIMatcher.match(uri);
        SQLiteDatabase database = mSQLiteHelper.getWritableDatabase();
        int rowsDeleted = 0;
        String id;

        switch (uriType) {
        case FEEDS:
            rowsDeleted = database.delete(FeedDAO.TABLE, selection, selectionArgs);
            break;
        case FEED_ID:
            id = uri.getLastPathSegment();
            if (TextUtils.isEmpty(selection)) {
                rowsDeleted = database.delete(FeedDAO.TABLE, FeedDAO._ID + "=" + id, null);