return deleted;
}
public static FeedSubscription createFeedSubscriptionObject(ResultSet rs) throws SQLException{
if(rs == null) return null;
FeedSubscription feed = new FeedSubscription();
Bookmark bookmark = BookmarkDBDao.createBookmarkObject2(rs);
feed.setId(rs.getInt(FeedSubscriptionSchema.ID));
feed.setAutoImport(rs.getBoolean(FeedSubscriptionSchema.AUTO_IMPORT));
feed.setLastSync(rs.getTimestamp(FeedSubscriptionSchema.LAST_SYNC));
feed.setMatchText(rs.getString(FeedSubscriptionSchema.MATCH_TEXT));
feed.setPubDate(rs.getTimestamp(FeedSubscriptionSchema.PUB_DATE));
feed.setBookmark(bookmark);
List<String> folderList = new ArrayList<String>();
String folders = rs.getString(FeedSubscriptionSchema.IMPORT_FOLDERS);
if(folders != null){
String[] fdrs = folders.split("/");
if(fdrs != null && fdrs.length > 0){
folderList = Arrays.asList(fdrs);
}
}
feed.setImportFolders(folderList);
return feed;
}